Skip to content

Commit

Permalink
super close now
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Feb 23, 2024
1 parent cee0ac6 commit e86f3b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ jobs:
with:
PLATFORMS: 'linux/amd64, linux/arm64'
NO_TEST: true
NOMAD_VAR_NO_DEPLOY: true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

Installs `nomad`, `consul`, and `caddyserver` (router) together as a mini cluster running inside a `podman` container.

(OK so we are now Hashistck-in-Docker _container_ :)

Nomad jobs will run as `podman` containers on the VM itself, orchestrated by `nomad`, leveraging `/var/lib/containers`.

The _brilliant_ `consul-template` will be used as "glue" between `consul` and `caddyserver` -- turning `caddyserver` into an always up-to-date reverse proxy router from incoming requests' Server Name Indication (SNI) to running containers :)
Expand Down
3 changes: 2 additions & 1 deletion bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ if [ ! -e $CONFIG ]; then
else
ARGS+=(--net=host)
fi
podman run $ARGS --privileged -v /var/lib/containers:/var/lib/containers --cgroupns=host --restart=unless-stopped --name hindup -v /pv/CERTS:/root/.local/share/caddy -d hind > /dev/null
# the --net=host seems to be needed to be run legit *outside* the container (and/or manually!?) xxx
podman run $ARGS --privileged -v /var/lib/containers:/var/lib/containers --net=host --cgroupns=host --restart=unless-stopped --name hindup -v /pv/CERTS:/root/.local/share/caddy -d hind > /dev/null


if [ ! $FIRST ]; then
Expand Down

0 comments on commit e86f3b9

Please sign in to comment.