We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688746d commit 08a3accCopy full SHA for 08a3acc
docker/fsroot/usr/local/bin/entry
@@ -64,11 +64,16 @@ if tty -s; then
64
if [ "$#" -eq 0 ]; then
65
tmux
66
else
67
- /bin/bash "$@"
+ # If a command was passed to the container, execute it
68
+ "$@"
69
fi
70
- # Sleep until we need to shut down.
71
- sleep infinity
+ # If it's not a TTY, it's likely a CI/CD job, in which case that job will
72
+ # keep the container open after the end of this script. If there's ever a
73
+ # use case for keeping the container alive when not in a TTY, this could be
74
+ # changed
75
+ yl "Not a TTY, exiting..."
76
+ exit 0
77
78
79
grn "Stopping experiment... "
0 commit comments