fuzziebrain / docker-oracle-xe

Docker build for Oracle Database 18c Express Edition (XE). This project is now archived with the release of version 21c.
MIT License
272 stars 127 forks source link

Graceful stop of container is not possible due "workaround" #36

Open profhccaesar opened 5 years ago

profhccaesar commented 5 years ago

The last lines of runOracle.sh are:

# TODO workaround
tail -f /dev/null

This "workaround" (work around what) prevents a graceful shutdown of the container because the root process never ends - although the database was already shut down. T. m.,

docker stop -t 200 oracle-xe

takes always 200 seconds, even if the database shutdown only needs 30 seconds or so. After the timeout of 200s the container is killed.

This means that also a shutdown of docker (and therefore the complete workstation) takes at least 200 sec - at least if the timeout was defined by docker run --stop-timeout 200 ...).

Removing the tail-Statement solves that problem. Seems to bring no other problems.