diff --git a/Dockerfile b/Dockerfile index 24b7464..6d4ef29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,4 +45,6 @@ RUN apt install -y \ nano \ git +#-- Set the entry point to run "go.sh" on run. +ENTRYPOINT /opt/bastion/bin/go.sh diff --git a/bin/go.sh b/bin/go.sh new file mode 100755 index 0000000..0953eaa --- /dev/null +++ b/bin/go.sh @@ -0,0 +1,13 @@ +#!/usr/bin/bash + +#-- Launch redis server in daemon mode. +/usr/bin/redis-server --daemonize yes + +#-- redis should launch and be ready almost instantly; +#-- however, just to be sure, we'll put a slight delay here. +sleep 3 + +#-- Launch bastion as the "conductor" process. +#-- Under normal circumstances, this process doesn't end. +/opt/bastion/bin/bastion.py become conductor +