Skip to content

Commit

Permalink
Added go.sh as the default entry point in the docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndenny committed May 21, 2025
1 parent dc52cda commit 3148e0a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

13 changes: 13 additions & 0 deletions bin/go.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3148e0a

Please sign in to comment.