Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/btr1975/apache-py2-django
Dockerfile to Build Web Server for Django Apps Python
https://github.com/btr1975/apache-py2-django
apache django django-apps-python django-localflavor docker docker-image dockerfile mod-wsgi mysql mysql-python py2-django python ubuntu wsgi
Last synced: 1 day ago
JSON representation
Dockerfile to Build Web Server for Django Apps Python
- Host: GitHub
- URL: https://github.com/btr1975/apache-py2-django
- Owner: btr1975
- License: mit
- Created: 2017-06-25T13:58:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T17:26:13.000Z (about 7 years ago)
- Last Synced: 2024-12-08T02:42:28.515Z (about 2 months ago)
- Topics: apache, django, django-apps-python, django-localflavor, docker, docker-image, dockerfile, mod-wsgi, mysql, mysql-python, py2-django, python, ubuntu, wsgi
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker-Image: apache-py2-django
## Created By: Benjamin P. Trachtenberg
### Contact Information: [email protected]
### If you have any questions e-mail me### LinkedIn: [Ben Trachtenberg](https://www.linkedin.com/in/ben-trachtenberg-3a78496)
### Docker Hub: [Image](https://hub.docker.com/r/btr1975/apache-py2-django/)### About
This image is for Python Django Apps written in Python 2
### Image Versions in apache-py2-django:1.1
* Python: 2.7.12
* Apache: 2.4.18 (Ubuntu) with mod_wsgi
* Django: 1.11.2
* Django-Localflavor: 1.5.1
* MySQL-python: 1.2.5### Image Versions in apache-py2-django:1.2
* Python: 2.7.12
* Apache: 2.4.18 (Ubuntu) with mod_wsgi
* Django: 1.11.2
* Django-Localflavor: 1.5.1
* MySQL-python: 1.2.5
* apache-site-conf.py: 1.0.0.prod### Image Versions in apache-py2-django:1.3
* Python: 2.7.12
* Apache: 2.4.18 (Ubuntu) with mod_wsgi
* Django: 1.11.2
* Django-Localflavor: 1.5.1
* MySQL-python: 1.2.5
* apache-site-conf.py: 1.0.1.prod
* apache-site-conf.sh: 1.0 prod### Image Versions in apache-py2-django:1.4
* Added ENV SITE_DIRECTORY_NAME, to bot conf build scripts, to helb build easier
### Docker-Image Version Tags
* latest
* 1.1
* 1.2
* 1.3
* 1.4#### -- Version News: apache-py2-django:1.3 --
Updated Python script that builds the apache conf file
Added a bash script that builds the apache conf file
Both scripts do the same thing, so use whichever you want.### Important usage info
```
There are 3 important ENV varibales you should use when using thisENV SITE_SERVER_NAME
ENV SITE_SERVER_ADMIN
ENV SITE_DIRECTORY_NAMESet these befor running the apache-site-conf.py, or apache-site-conf.sh script.
```
### Example Dockerfile
```yaml
FROM btr1975/apache-py2-django:1.4ENV SITE_SERVER_NAME="www.example.com"
ENV SITE_SERVER_ADMIN="[email protected]"
ENV SITE_DIRECTORY_NAME="SomeDir"COPY ./SomeDir .
RUN chmod 755 -R /DjangoSites \
&& /bin/apache-site-conf.sh```