Merge pull request #20 from pierotofy/docker_chmod_x

Added chmod +x command to docker
pull/23/head
Dakota Benjamin 2016-09-28 15:10:48 +02:00 zatwierdzone przez GitHub
commit fad6fd365a
4 zmienionych plików z 12 dodań i 8 usunięć

Wyświetl plik

@ -29,3 +29,6 @@ WORKDIR /webodm/nodeodm/external/node-OpenDroneMap
RUN npm install
WORKDIR /webodm
# Make sure all scripts are executable
RUN chmod +x *.sh

Wyświetl plik

@ -16,6 +16,7 @@ The quickest way to get started is by using Docker.
```
git clone https://github.com/OpenDroneMap/WebODM
cd WebODM
pip install docker-compose
docker-compose up
```

Wyświetl plik

@ -8,7 +8,7 @@ services:
webapp:
build: .
container_name: webapp
entrypoint: /bin/bash /webodm/wait-for-it.sh db:5432 -- /webodm/start.sh
entrypoint: /bin/bash -c "chmod +x /webodm/*.sh && /webodm/wait-for-it.sh db:5432 -- /webodm/start.sh"
volumes:
- .:/webodm
ports:

Wyświetl plik

@ -1,11 +1,11 @@
#!/bin/bash
if ! [ -a .initialized ]; then
echo First run, migrating...
python manage.py migrate
echo Running migrations
python manage.py makemigrations
python manage.py migrate
echo Creating default superuser...
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')" | python manage.py shell
touch .initialized
fi
echo Creating default superuser...
# This will fail if the user is a duplicate
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin')" | python manage.py shell
python manage.py runserver 0.0.0.0:8000