Skip to content
Snippets Groups Projects
Commit 9b87ab34 authored by leszeks's avatar leszeks
Browse files

python 3.6 changed to python 2.7

parent eff9b5e3
No related branches found
No related tags found
2 merge requests!2Morfeusz to docker,!1Morfeusz to docker
Pipeline #779 passed
image: 'clarinpl/python:3.6' image: 'clarinpl/python:2.7'
cache: cache:
paths: paths:
- .tox - .tox
......
FROM clarinpl/python:3.6 FROM clarinpl/python:2.7
WORKDIR /home/worker WORKDIR /home/worker
COPY ./src ./src COPY ./src ./src
COPY ./main.py . COPY ./main.py .
COPY ./requirements.txt . COPY ./requirements.txt .
RUN python3.6 -m pip install -r requirements.txt RUN pip install -r requirements.txt
RUN apt install python3-morfeusz2 RUN apt-get install -y python-morfeusz2
CMD ["python3.6", "main.py", "service"] CMD ["python2.7", "main.py", "service"]
...@@ -5,7 +5,7 @@ services: ...@@ -5,7 +5,7 @@ services:
build: ./ build: ./
working_dir: /home/worker working_dir: /home/worker
entrypoint: entrypoint:
- python3.6 - python2.7
- main.py - main.py
- service - service
environment: environment:
......
lex-ws lex-ws
pika==0.12
\ No newline at end of file
...@@ -12,7 +12,7 @@ commands = ...@@ -12,7 +12,7 @@ commands =
[testenv:docstyle] [testenv:docstyle]
deps = deps =
pydocstyle pydocstyle
basepython = python3 basepython = python2
commands = commands =
pydocstyle --verbose {posargs} pydocstyle --verbose {posargs}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment