Permalink
Browse files

Use /bin/bash instead of run.sh as our ENTRYPOINT to workaround volum…

…e mount issues on Windows (#136). r=bhearsum
  • Loading branch information...
1 parent c78fd06 commit f8d1ea76af777b407565d5250bde201de9a57a17 @F3real F3real committed with mozbhearsum Oct 4, 2016
Showing with 8 additions and 2 deletions.
  1. +4 −1 Dockerfile
  2. +4 −1 agent/Dockerfile
View
@@ -38,5 +38,8 @@ RUN npm run build
WORKDIR /app
-ENTRYPOINT ["/app/uwsgi/run.sh"]
+# Using /bin/bash as the entrypoint works around some volume mount issues on Windows
+# where volume-mounted files do not have execute bits set.
+# https://github.com/docker/compose/issues/2301#issuecomment-154450785 has additional background.
+ENTRYPOINT ["/bin/bash", "/app/uwsgi/run.sh"]
CMD ["public"]
View
@@ -13,5 +13,8 @@ COPY run.sh MANIFEST.in setup.py version.json /app/
# test-only stuff
COPY .coveragerc requirements-test.txt run-tests.sh tox.ini version.txt /app/
-ENTRYPOINT ["/app/run.sh"]
+# Using /bin/bash as the entrypoint works around some volume mount issues on Windows
+# where volume-mounted files do not have execute bits set.
+# https://github.com/docker/compose/issues/2301#issuecomment-154450785 has additional background.
+ENTRYPOINT ["/bin/bash", "/app/run.sh"]
CMD ["agent"]

1 comment on commit f8d1ea7

Please sign in to comment.