File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,20 +21,20 @@ RUN apt-get update && apt-get install -qqy \
2121 mkdir /home/syncano
2222
2323WORKDIR /home/syncano/
24- RUN virtualenv v4.1 && \
25- . v4.1 /bin/activate && \
26- pip install -r /tmp/requirements_v41 .txt && \
24+ RUN virtualenv v4.2 && \
25+ . v4.2 /bin/activate && \
26+ pip install -r /tmp/requirements_v42 .txt && \
2727 pip install -r /tmp/external_requirements.txt && \
2828 deactivate
2929
30- RUN virtualenv v4.2 && \
31- . v4.2 /bin/activate && \
30+ RUN virtualenv v5.0 && \
31+ . v5.0 /bin/activate && \
3232 pip install -r /tmp/requirements.txt && \
3333 pip install -r /tmp/external_requirements.txt
3434
35- RUN ln -sf /home/syncano/v4.1 /bin/python /usr/bin/python && \
36- ln -sf /home/syncano/v4.2 /bin/python /usr/bin/python27-42 && \
37- ln -sf /home/syncano/v4.1 /bin/python /usr/bin/python27-41
35+ RUN ln -sf /home/syncano/v4.2 /bin/python /usr/bin/python && \
36+ ln -sf /home/syncano/v5.0 /bin/python /usr/bin/python27-lib5.0 && \
37+ ln -sf /home/syncano/v4.2 /bin/python /usr/bin/python27-lib4.2
3838# create a special user to run code
3939# user without root privileges greatly improves security
4040RUN useradd syncano -d /tmp -s /bin/bash
Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ dependencies:
99test :
1010 override :
1111 - docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
12- - docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-42 /tmp/test.py
12+ - docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
13+ - docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py
1314 - docker run -it -v `pwd`/test2.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
14- - docker run -it -v `pwd`/test3.py:/tmp/test.py quay.io/syncano/python-codebox python27-42 /tmp/test.py
15+ - docker run -it -v `pwd`/test2.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
16+ - docker run -it -v `pwd`/test3.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py
1517
1618deployment :
1719 production :
Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ fastly==0.0.2
2323pandas == 0.17.1
2424BeautifulSoup == 3.2.1
2525boto3 == 1.2.5
26- syncano == 4.2 .0
26+ syncano == 5.0 .0
Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ fastly==0.0.2
2323pandas==0.17.1
2424BeautifulSoup==3.2.1
2525boto3==1.2.5
26- syncano==4.1 .0
26+ syncano==4.2 .0
Original file line number Diff line number Diff line change 11import syncano
2- assert syncano .__version__ == '4.1 .0'
2+ assert syncano .__version__ == '4.2 .0'
Original file line number Diff line number Diff line change 11import syncano
2- assert syncano .__version__ == '4.2 .0'
2+ assert syncano .__version__ == '5.0 .0'
You can’t perform that action at this time.
0 commit comments