Deploy course
This commit is contained in:
parent
f47142bcde
commit
7ef34c76ea
4 changed files with 56 additions and 7 deletions
26
containers/collective_score_server.fish
Executable file
26
containers/collective_score_server.fish
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set -l container_name collective-score-server
|
||||
set -l container_volumes_dir ~/volumes/$container_name
|
||||
|
||||
buildah build -t $container_name:latest ~/code/collective-score
|
||||
|
||||
set -l db_container_name collective-score-server-db
|
||||
set -l db_container_volumes_dir $container_volumes_dir/db
|
||||
set -l db_env_file $container_volumes_dir/.postgres.env
|
||||
|
||||
podman-default-create \
|
||||
$db_container_name \
|
||||
--network traefik \
|
||||
-v $db_container_volumes_dir:/var/lib/postgresql/data:Z \
|
||||
-e TZ=Europe/Berlin \
|
||||
-e PGTZ=Europe/Berlin \
|
||||
--env-file $db_env_file \
|
||||
--label "io.containers.autoupdate=registry" \
|
||||
docker.io/library/postgres:15-alpine
|
||||
|
||||
podman-default-create \
|
||||
$container_name \
|
||||
--network traefik \
|
||||
-v $container_volumes_dir/data:/volumes/data:Z \
|
||||
localhost/$container_name:latest
|
12
containers/dev_tools.fish
Executable file
12
containers/dev_tools.fish
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set -l container_name dev-tools
|
||||
|
||||
cd ~/code/dev_tools
|
||||
mdbook build
|
||||
buildah build --layers -t $container_name:latest .; or return 1
|
||||
|
||||
podman-default-create \
|
||||
$container_name \
|
||||
--network traefik \
|
||||
localhost/$container_name:latest
|
|
@ -29,7 +29,6 @@ buildah run builder -- dnf install -y \
|
|||
man-db \
|
||||
man-pages \
|
||||
nano \
|
||||
passwd \
|
||||
python3 \
|
||||
rsync \
|
||||
tree \
|
||||
|
@ -41,7 +40,10 @@ buildah run builder -- dnf install -y \
|
|||
# Compilation
|
||||
clang \
|
||||
cmake \
|
||||
openssl-devel
|
||||
openssl-devel \
|
||||
# for passwd
|
||||
passwd \
|
||||
cracklib-dicts
|
||||
|
||||
buildah run builder -- dnf autoremove -y
|
||||
buildah run builder -- dnf clean -y all
|
||||
|
|
|
@ -49,11 +49,6 @@ http:
|
|||
- xueyue_li_art_to_juna_li_com
|
||||
- remove_www_juna_li_com
|
||||
service: juna_li_com
|
||||
to_how_to_linux:
|
||||
rule: Host(`how-to-linux.mo8it.com`) || Host(`how-to-linux.mo8it.xyz`)
|
||||
middlewares:
|
||||
- mo8it_xyz_to_com
|
||||
service: nginx
|
||||
to_advlabdb:
|
||||
rule: Host(`advlabdb.mo8it.com`)
|
||||
service: advlabdb
|
||||
|
@ -123,6 +118,12 @@ http:
|
|||
to_oxitraffic_corrode_dev:
|
||||
rule: Host(`oxitraffic-corrode-dev.mo8it.com`)
|
||||
service: oxitraffic_corrode_dev
|
||||
to_dev_tools:
|
||||
rule: Host(`dev-tools.mo8it.com`)
|
||||
service: dev_tools
|
||||
to_collective_score:
|
||||
rule: Host(`collective-score.mo8it.com`)
|
||||
service: collective_score
|
||||
{{ $n_ttyds := 28 }}
|
||||
{{ range $index, $num := until $n_ttyds }}
|
||||
to_ttyd{{ $num }}:
|
||||
|
@ -206,6 +207,14 @@ http:
|
|||
loadBalancer:
|
||||
servers:
|
||||
- url: http://oxitraffic-corrode-dev
|
||||
dev_tools:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://dev-tools
|
||||
collective_score:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://collective-score-server
|
||||
{{ range $index, $num := until $n_ttyds }}
|
||||
ttyd{{ $num }}:
|
||||
loadBalancer:
|
||||
|
|
Loading…
Reference in a new issue