forked from openwisp/openwisp-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/phyxkal/openwisp-controller
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:3-onbuild | ||
|
||
WORKDIR . | ||
COPY setup.py . | ||
RUN apt-get update && apt-get install -y \ | ||
openssl \ | ||
sqlite3 \ | ||
libsqlite3-dev \ | ||
libssl-dev \ | ||
gdal-bin \ | ||
libproj-dev \ | ||
libgeos-dev \ | ||
libspatialite-dev | ||
RUN pip3 install -U pip setuptools wheel | ||
RUN pip3 install -U . | ||
|
||
WORKDIR tests/ | ||
CMD ["./docker-entrypoint.sh"] | ||
EXPOSE 8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
python3 manage.py migrate | ||
python3 manage.py createsuperuser | ||
python3 manage.py runserver 0.0.0.0:8000 | ||
echo "EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'" > local_settings.py |