diff --git a/Dockerfile b/Dockerfile index 302f09c..527849b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/circle.yml b/circle.yml index 85989ad..f947919 100644 --- a/circle.yml +++ b/circle.yml @@ -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: diff --git a/requirements.txt b/requirements.txt index b711e79..3b477a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/requirements_v41.txt b/requirements_v42.txt similarity index 96% rename from requirements_v41.txt rename to requirements_v42.txt index 4f0432d..b711e79 100644 --- a/requirements_v41.txt +++ b/requirements_v42.txt @@ -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 diff --git a/test2.py b/test2.py index a8ff144..a1e37cf 100644 --- a/test2.py +++ b/test2.py @@ -1,2 +1,2 @@ import syncano -assert syncano.__version__ == '4.1.0' +assert syncano.__version__ == '4.2.0' diff --git a/test3.py b/test3.py index a1e37cf..43d5f1f 100644 --- a/test3.py +++ b/test3.py @@ -1,2 +1,2 @@ import syncano -assert syncano.__version__ == '4.2.0' +assert syncano.__version__ == '5.0.0'