Skip to content
Snippets Groups Projects
Commit a43dc781 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Issue #235 Use sleep infinity instead of httpd (missing after image reduction)...

Issue #235 Use sleep infinity instead of httpd (missing after image reduction) to hold container running
parent 1ae47b7c
No related branches found
No related tags found
No related merge requests found
...@@ -337,8 +337,6 @@ done ...@@ -337,8 +337,6 @@ done
export HIVED_ARGS export HIVED_ARGS
echo "Attempting to execute hived using additional command line arguments:" "${HIVED_ARGS[*]}"
echo "${BASH_SOURCE[@]}" echo "${BASH_SOURCE[@]}"
status=0 status=0
...@@ -359,15 +357,7 @@ elif [ ${SKIP_HIVED} -eq 1 ]; ...@@ -359,15 +357,7 @@ elif [ ${SKIP_HIVED} -eq 1 ];
then then
echo "Not launching hived due to --skip-hived command-line option" echo "Not launching hived due to --skip-hived command-line option"
echo "You can now connect to the database. This this container will continue to exist until you shut it down" echo "You can now connect to the database. This this container will continue to exist until you shut it down"
# launch a webserver on port 8091 so the docker healthcheck will pass. We probably want sleep infinity
# the healthcheck to pass so docker-compose will continue to launch dependent containers
# like pgadmin.
# The webserver running in the foreground will also act to keep this container running
# until the docker image is stopped.
mkdir -p /tmp/dummy-webserver
cd /tmp/dummy-webserver
touch index.html
httpd -f -p 8091
else else
run_instance run_instance
status=$? status=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment