Skip to content

Commit

Permalink
Remove old django pid file (workaround #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Oct 26, 2017
1 parent 3e86008 commit 50a2e42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions 98-cleanprevious.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# This image isn't cleanly shutdown by docker stop
# https://github.com/openmicroscopy/omero-web-docker/issues/1
# This is a workaround until we figure out the root cause
set -eu

rm -f /opt/omero/web/OMERO.web/var/django.pid
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN curl -L -o /usr/local/bin/dumb-init \
https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \
chmod +x /usr/local/bin/dumb-init
ADD entrypoint.sh /usr/local/bin/
ADD 50-config.py 60-default-web-config.sh 99-run.sh /startup/
ADD 50-config.py 60-default-web-config.sh 98-cleanprevious.sh 99-run.sh /startup/

USER omero-web
RUN mkdir /opt/omero/web/OMERO.web/var
Expand Down

0 comments on commit 50a2e42

Please sign in to comment.