Skip to content

Commit f1f9799

Browse files
committed
Version 1.1
1 parent 5f22a2e commit f1f9799

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ FROM ubuntu:16.04
33

44
LABEL maintainer="e_ben_75-python@yahoo.com" \
55
important-stopping-note="Stop the server by running apache2ctl stop, this will keep from process hang" \
6-
description="This is a base Apache2, Python 3.5.2, Python3 MySQL-Connector, and mod_wsgi for py3 web server for Django." \
6+
description="This is a base Apache2, Python 3.5.2, Python3 mysqlclient, and mod_wsgi for py3 web server for Django." \
77
image-version="1.1" \
88
django-version="1.11.2" \
99
django-localflavor-version="1.5.1" \
10-
mysql-connector-version="2.0.4"
10+
mysqlclient-version="1.3.10"
1111

1212
# Copies the apache conf python script
1313

@@ -27,14 +27,15 @@ WORKDIR /DjangoSites
2727
RUN apt-get update && apt-get install -y apache2 \
2828
python3 \
2929
python3-pip \
30-
python3-mysql.connector \
30+
libmysqlclient-dev \
3131
libapache2-mod-wsgi-py3 \
3232
&& apt-get clean \
3333
&& chmod 755 /DjangoSites \
3434
&& chmod 755 /bin/apache-site-conf.py \
3535
&& pip3 install --upgrade pip \
3636
&& pip3 install Django==1.11.2 \
37-
&& pip3 install django-localflavor==1.5.1
37+
&& pip3 install django-localflavor==1.5.1 \
38+
&& pip3 install mysqlclient==1.3.10
3839

3940
EXPOSE 80 443
4041

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,27 @@
1111

1212
This image is for Python Django Apps written in Python 3
1313

14-
### Image Versions in apache-py2-django:1.0
14+
### Image Versions in apache-py3-django:1.0
1515

1616
* Python: 3.5.2
1717
* Apache: 2.4.18 (Ubuntu) with mod_wsgi py3 version
1818
* Django: 1.11.2
1919
* Django-Localflavor: 1.5.1
2020
* MySQL-Connector: 2.0.4
2121

22+
### Image Versions in apache-py3-django:1.1
23+
24+
* Python: 3.5.2
25+
* Apache: 2.4.18 (Ubuntu) with mod_wsgi py3 version
26+
* Django: 1.11.2
27+
* Django-Localflavor: 1.5.1
28+
* mysqlclient: 1.3.10
29+
2230
### Docker-Image Version Tags
2331
* latest
2432
* 1.0
33+
* 1.1
34+
35+
#### -- Version News: apache-py2-django:1.1 --
36+
* Added a Python script that builds the apache conf file
37+
* Swapped out MySQL-Connector, for mysqlclient, to many issues with MySQL-Connector

0 commit comments

Comments
 (0)