-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfiles with new combined image
- Loading branch information
1 parent
de891a4
commit 1ddacc8
Showing
101 changed files
with
2,960 additions
and
997 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
# This script works around a Docker bug that prevents rlwrap from starting | ||
# right when a container is first started. It is intended to replace | ||
# /usr/bin/rlwrap and also be named rlwrap but earlier in the PATH | ||
# (e.g. /usr/local/bin). | ||
|
||
max_tries=100 # 100 tries is ~1 second | ||
try=0 | ||
|
||
while true; do | ||
# see if rlwrap can start at all | ||
output=$(/usr/bin/rlwrap true 2>&1 >/dev/null) | ||
exit_code=$? | ||
if [ $exit_code -gt 0 ]; then | ||
# it didn't start | ||
try=$((try+1)) | ||
if [ $try -gt $max_tries ]; then | ||
# we're at max attempts so output the error and exit w/ the same code | ||
echo "$output" >&2 | ||
exit $exit_code | ||
else | ||
# wait a bit and try again | ||
sleep 0.01 | ||
fi | ||
else | ||
# rlwrap can start so let's run it for real | ||
exec /usr/bin/rlwrap "$@" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.