]> git.parisson.com Git - teleforma.git/commitdiff
goto py3, do NOT install requirements ATM
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 25 May 2021 16:08:13 +0000 (18:08 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 25 May 2021 16:08:31 +0000 (18:08 +0200)
Dockerfile
debian-packages.txt

index 18aa9d9ccc178ce9f558c95a1a53282b07668896..f3cfc30d936c6ae5fd88747840d1ce6c6d2af258 100644 (file)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM python:2
+FROM python:3
 
 MAINTAINER Guillaume Pellerin <yomguy@parisson.com>
 
@@ -35,18 +35,18 @@ RUN apt-get update && \
     locale-gen && \
     apt-get clean
 
-RUN pip install -U pip
+RUN pip3 install -U pip
 
 ENV LANG fr_FR.UTF-8
 ENV LANGUAGE fr_FR:fr
 ENV LC_ALL fr_FR.UTF-8
 
-COPY requirements.txt /srv
-RUN pip install -r requirements.txt
+COPY requirements.txt /srv
+# RUN pip3 install -r requirements.txt
 
-COPY lib /srv/lib
-COPY bin/build/local/setup_lib_py2.sh /srv
-RUN /srv/setup_lib_py2.sh
+COPY lib /srv/lib
+# COPY bin/build/local/setup_lib.sh /srv
+# RUN /srv/setup_lib.sh
 
 WORKDIR /srv/src/teleforma
 COPY setup.py /srv/src/teleforma
@@ -55,8 +55,8 @@ COPY README.rst /srv/src/teleforma
 RUN python setup.py develop
 
 # Workaround for django installation bugs
-RUN cp -ra /usr/local/django/* /usr/local/lib/python2.7/site-packages/django/
-RUN cp -ra /usr/local/django_extensions/* /usr/local/lib/python2.7/site-packages/django_extensions/
+RUN cp -ra /usr/local/django/* /usr/local/lib/python2.7/site-packages/django/
+RUN cp -ra /usr/local/django_extensions/* /usr/local/lib/python2.7/site-packages/django_extensions/
 
 WORKDIR /srv/app
 
index a2201051e667b296af2ac335e8dd69cc34b86551..f80b528257546b46cbd94fe030b44c4f975b9ac6 100644 (file)
@@ -3,8 +3,8 @@ netcat
 vim
 locales
 ipython
-python-setuptools
-python-mysqldb
-python-psycopg2
-python-yaml
+python3-setuptools
+python3-mysqldb
+python3-psycopg2
+python3-yaml
 uwsgi
\ No newline at end of file