From a01d56405d4f8eeb9b51fb81dac3e618bfa3dc48 Mon Sep 17 00:00:00 2001 From: Imbus Date: Fri, 20 Oct 2023 03:28:22 +0200 Subject: [PATCH] Restructure. Broken kube.yml, working compose.yml. --- Containerfile => container/Containerfile | 0 .../ContainerfileDebug | 0 container/compose.yml | 14 ++++++++++++++ container/kube.yml | 15 +++++++++++++++ justfile | 4 ++-- 5 files changed, 31 insertions(+), 2 deletions(-) rename Containerfile => container/Containerfile (100%) rename ContainerfileDebug => container/ContainerfileDebug (100%) create mode 100644 container/compose.yml create mode 100644 container/kube.yml diff --git a/Containerfile b/container/Containerfile similarity index 100% rename from Containerfile rename to container/Containerfile diff --git a/ContainerfileDebug b/container/ContainerfileDebug similarity index 100% rename from ContainerfileDebug rename to container/ContainerfileDebug diff --git a/container/compose.yml b/container/compose.yml new file mode 100644 index 0000000..503fa37 --- /dev/null +++ b/container/compose.yml @@ -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 diff --git a/container/kube.yml b/container/kube.yml new file mode 100644 index 0000000..1b1f71c --- /dev/null +++ b/container/kube.yml @@ -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: {} diff --git a/justfile b/justfile index d739cdc..5bce120 100644 --- a/justfile +++ b/justfile @@ -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