From 3148e0a269e1f44b1768a8ed35d34838c1e1221e Mon Sep 17 00:00:00 2001 From: Nathan Denny Date: Wed, 21 May 2025 01:43:32 -0400 Subject: [PATCH] Added go.sh as the default entry point in the docker build. --- Dockerfile | 2 ++ bin/go.sh | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 bin/go.sh 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 +