Compare commits
3 commits
d0b7e7e33a
...
53a8dd145f
Author | SHA1 | Date | |
---|---|---|---|
53a8dd145f | |||
fe6921d1cb | |||
0f204a71e7 |
3 changed files with 27 additions and 1 deletions
15
containers/comprehensive_rust.fish
Executable file
15
containers/comprehensive_rust.fish
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
set -l container_name comprehensive-rust
|
||||||
|
|
||||||
|
mkdir -p ~/volumes/$container_name
|
||||||
|
|
||||||
|
mdbook build -d ~/volumes/$container_name ~/code/comprehensive-rust; or return 1
|
||||||
|
|
||||||
|
podman-default-create \
|
||||||
|
$container_name \
|
||||||
|
--network traefik \
|
||||||
|
-v ~/sync/volumes/nginx.conf:/etc/nginx/nginx.conf:z,ro \
|
||||||
|
-v ~/volumes/$container_name:/usr/share/nginx/html:Z,ro \
|
||||||
|
--label "io.containers.autoupdate=registry" \
|
||||||
|
docker.io/library/nginx:alpine
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
set -l user mo
|
set -l user mo8it
|
||||||
set -l user_home /home/$user
|
set -l user_home /home/$user
|
||||||
|
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
|
@ -9,6 +9,10 @@ dnf install -y \
|
||||||
# For helix grammer compliation
|
# For helix grammer compliation
|
||||||
clang
|
clang
|
||||||
|
|
||||||
|
runuser -u $user -- cargo install \
|
||||||
|
mdbook \
|
||||||
|
mdbook-svgbob
|
||||||
|
|
||||||
loginctl enable-linger $user
|
loginctl enable-linger $user
|
||||||
|
|
||||||
runuser -u $user -- mkdir -p $user_home/.config/systemd/user
|
runuser -u $user -- mkdir -p $user_home/.config/systemd/user
|
||||||
|
|
|
@ -115,6 +115,9 @@ http:
|
||||||
to_dev_tools:
|
to_dev_tools:
|
||||||
rule: Host(`dev-tools.mo8it.com`)
|
rule: Host(`dev-tools.mo8it.com`)
|
||||||
service: dev_tools
|
service: dev_tools
|
||||||
|
to_comprehensive_rust:
|
||||||
|
rule: Host(`comprehensive-rust.mo8it.com`)
|
||||||
|
service: comprehensive_rust
|
||||||
to_collective_score:
|
to_collective_score:
|
||||||
rule: Host(`collective-score.mo8it.com`)
|
rule: Host(`collective-score.mo8it.com`)
|
||||||
service: collective_score
|
service: collective_score
|
||||||
|
@ -207,6 +210,10 @@ http:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: http://dev-tools
|
- url: http://dev-tools
|
||||||
|
comprehensive_rust:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: http://comprehensive-rust
|
||||||
collective_score:
|
collective_score:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
|
|
Loading…
Reference in a new issue