From dced187fc738b565c54c00ff653e46114193c1bf Mon Sep 17 00:00:00 2001 From: Imbus Date: Fri, 20 Oct 2023 03:28:35 +0200 Subject: [PATCH] Some helpful comments --- container/Containerfile | 4 ++-- container/ContainerfileDebug | 4 +++- container/compose.yml | 24 ++++++++++++------------ container/kube.yml | 3 ++- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/container/Containerfile b/container/Containerfile index 976aa93..b1969ce 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -4,7 +4,7 @@ # make it available in the public directory. FROM docker.io/node:latest as client WORKDIR /build -ADD ./client-solid /build +ADD client-solid /build RUN npm install RUN npm run build @@ -13,7 +13,7 @@ RUN npm run build # that runs cleanly without depending on glibc. FROM docker.io/rust:latest as builder WORKDIR /build -ADD ./server /build +ADD server /build RUN apt update RUN apt install musl musl-dev musl-tools -y RUN rustup target add x86_64-unknown-linux-musl diff --git a/container/ContainerfileDebug b/container/ContainerfileDebug index 0877b41..5fd4ef3 100644 --- a/container/ContainerfileDebug +++ b/container/ContainerfileDebug @@ -1,3 +1,5 @@ +# Note that building this requires the proper build context + # This file builds the server only, and does not copy the frontend build. # This is useful for frontend development, as it allows you to run the frontend # with an actual backend. @@ -8,7 +10,7 @@ # that runs cleanly without depending on glibc. FROM docker.io/rust:latest as builder WORKDIR /build -ADD ./server /build +ADD server /build RUN apt update RUN apt install musl musl-dev musl-tools -y RUN rustup target add x86_64-unknown-linux-musl diff --git a/container/compose.yml b/container/compose.yml index 503fa37..2f17022 100644 --- a/container/compose.yml +++ b/container/compose.yml @@ -1,14 +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 + 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 index 1b1f71c..076b21b 100644 --- a/container/kube.yml +++ b/container/kube.yml @@ -1,3 +1,5 @@ +# This is not working + apiVersion: v1 kind: Pod metadata: @@ -7,7 +9,6 @@ metadata: spec: containers: - image: "." - # - image: localhost/fb-server:latest name: frostbyte ports: - containerPort: 8080