fix: building image with extensions and batch manager
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
# $0 is a script name,
|
||||
# $1, $2, $3 etc are passed arguments
|
||||
# $1 is our command
|
||||
CMD=$1
|
||||
|
||||
case "$CMD" in
|
||||
'start' )
|
||||
echo `pwd`
|
||||
rm -f /app/tmp/pids/server.pid
|
||||
bundle exec rails s -b 0.0.0.0
|
||||
;;
|
||||
|
||||
* )
|
||||
# Run custom command. Thanks to this line we can still use
|
||||
# "docker run our_image /bin/sh" and it will work
|
||||
exec "$@"
|
||||
;;
|
||||
esac
|
||||
17
docker/entrypoint.sh
Executable file
17
docker/entrypoint.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
'start' )
|
||||
echo "Prestart Step 1/1 - Removing server lock"
|
||||
rm -f /app/tmp/pids/server.pid
|
||||
echo "Starting Server..."
|
||||
bundle exec rails s -b 0.0.0.0
|
||||
;;
|
||||
|
||||
* )
|
||||
echo "Unknown command"
|
||||
;;
|
||||
esac
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user