Restructure. Broken kube.yml, working compose.yml.
This commit is contained in:
parent
3a3003be7e
commit
a01d56405d
5 changed files with 31 additions and 2 deletions
14
container/compose.yml
Normal file
14
container/compose.yml
Normal 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
15
container/kube.yml
Normal 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: {}
|
4
justfile
4
justfile
|
@ -16,7 +16,7 @@ npm-build: (npm-install "client-solid")
|
||||||
# Builds a debug container
|
# Builds a debug container
|
||||||
[private]
|
[private]
|
||||||
build-container-server-debug:
|
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
|
# Builds a debug container and runs it
|
||||||
[private]
|
[private]
|
||||||
|
@ -27,7 +27,7 @@ start-debug: build-container-server-debug remove-podman-containers
|
||||||
# Builds a release container
|
# Builds a release container
|
||||||
[private]
|
[private]
|
||||||
build-container-release:
|
build-container-release:
|
||||||
{{runtime}} build -t fb-server .
|
{{runtime}} build -t fb-server -f container/Containerfile .
|
||||||
|
|
||||||
# Builds a release container and runs it
|
# Builds a release container and runs it
|
||||||
start-release: build-container-release remove-podman-containers
|
start-release: build-container-release remove-podman-containers
|
||||||
|
|
Loading…
Reference in a new issue