Browse Source

Fixes to Dockerfile.dev

Matt Robenolt 8 years ago
parent
commit
dd0200e9f8
2 changed files with 3 additions and 2 deletions
  1. 1 1
      Dockerfile.dev
  2. 2 1
      scripts/docker-entrypoint.sh

+ 1 - 1
Dockerfile.dev

@@ -120,4 +120,4 @@ ADD scripts/docker-entrypoint.sh /entrypoint.sh
 ENTRYPOINT [ "/entrypoint.sh" ]
 
 EXPOSE 8000
-CMD [ "bootstrap" ]
+CMD [ "bash" ]

+ 2 - 1
scripts/docker-entrypoint.sh

@@ -8,12 +8,13 @@ service memcached start
 service postfix start
 service ntp start
 
-if [ "$1" = 'bootstrap' ]; then
+if [ ! -f /.bootstrapped ]; then
   SENTRY_LIGHT_BUILD=1 pip install -vvv -e .[dev,tests]
   npm install
   sentry init $SENTRY_CONF
   sentry upgrade --noinput
   sentry createuser --email=root@localhost --password=admin --superuser --no-input
+  touch /.bootstrapped
 
   echo "done" && exit 0
 fi