Restructure. Broken kube.yml, working compose.yml.

This commit is contained in:
Imbus 2023-10-20 03:28:22 +02:00
parent 3a3003be7e
commit a01d56405d
5 changed files with 31 additions and 2 deletions

14
container/compose.yml Normal file
View file

@ -0,0 +1,14 @@
version: '3.3'
services:
frostbyte:
container_name: frostbyte
build:
context: "."
dockerfile: Containerfile
ports:
- '8080:8080'
restart: always
logging:
options:
max-size: 10m
image: frostbyte

15
container/kube.yml Normal file
View file

@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
labels:
app: frostbyte-pod
name: fbpod
spec:
containers:
- image: "."
# - image: localhost/fb-server:latest
name: frostbyte
ports:
- containerPort: 8080
hostPort: 8080
securityContext: {}

View file

@ -16,7 +16,7 @@ npm-build: (npm-install "client-solid")
# Builds a debug container
[private]
build-container-server-debug:
{{runtime}} build -t fb-server-debug -f ContainerfileDebug .
{{runtime}} build -t fb-server-debug -f container/ContainerfileDebug .
# Builds a debug container and runs it
[private]
@ -27,7 +27,7 @@ start-debug: build-container-server-debug remove-podman-containers
# Builds a release container
[private]
build-container-release:
{{runtime}} build -t fb-server .
{{runtime}} build -t fb-server -f container/Containerfile .
# Builds a release container and runs it
start-release: build-container-release remove-podman-containers