Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ RUN apt-get update && apt-get install -qqy \
mkdir /home/syncano

WORKDIR /home/syncano/
RUN virtualenv v4.1 && \
. v4.1/bin/activate && \
pip install -r /tmp/requirements_v41.txt && \
RUN virtualenv v4.2 && \
. v4.2/bin/activate && \
pip install -r /tmp/requirements_v42.txt && \
pip install -r /tmp/external_requirements.txt && \
deactivate

RUN virtualenv v4.2 && \
. v4.2/bin/activate && \
RUN virtualenv v5.0 && \
. v5.0/bin/activate && \
pip install -r /tmp/requirements.txt && \
pip install -r /tmp/external_requirements.txt

RUN ln -sf /home/syncano/v4.1/bin/python /usr/bin/python && \
ln -sf /home/syncano/v4.2/bin/python /usr/bin/python27-42 && \
ln -sf /home/syncano/v4.1/bin/python /usr/bin/python27-41
RUN ln -sf /home/syncano/v4.2/bin/python /usr/bin/python && \
ln -sf /home/syncano/v5.0/bin/python /usr/bin/python27-lib5.0 && \
ln -sf /home/syncano/v4.2/bin/python /usr/bin/python27-lib4.2
# create a special user to run code
# user without root privileges greatly improves security
RUN useradd syncano -d /tmp -s /bin/bash
Expand Down
6 changes: 4 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ dependencies:
test:
override:
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-42 /tmp/test.py
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py
- docker run -it -v `pwd`/test2.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
- docker run -it -v `pwd`/test3.py:/tmp/test.py quay.io/syncano/python-codebox python27-42 /tmp/test.py
- docker run -it -v `pwd`/test2.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
- docker run -it -v `pwd`/test3.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py

deployment:
production:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fastly==0.0.2
pandas==0.17.1
BeautifulSoup==3.2.1
boto3==1.2.5
syncano==4.2.0
syncano==5.0.0
2 changes: 1 addition & 1 deletion requirements_v41.txt → requirements_v42.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fastly==0.0.2
pandas==0.17.1
BeautifulSoup==3.2.1
boto3==1.2.5
syncano==4.1.0
syncano==4.2.0
2 changes: 1 addition & 1 deletion test2.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import syncano
assert syncano.__version__ == '4.1.0'
assert syncano.__version__ == '4.2.0'
2 changes: 1 addition & 1 deletion test3.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import syncano
assert syncano.__version__ == '4.2.0'
assert syncano.__version__ == '5.0.0'