Commit 0e855d3c authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Revert "Reduced the docker image size"

This reverts commit de8f8005.
parent 7722ba3a
[bumpversion]
current_version = 0.3.9
current_version = 0.3.8
commit = True
tag = True
......
......@@ -55,22 +55,17 @@ test:
script:
- docker load -i image.tar
- >
docker create --name fractalis_tests -i -t $DOCKER_USER/$DOCKER_IMAGE_TAG
docker run
$DOCKER_USER/$DOCKER_IMAGE_TAG
sh -c "
printf \"REDIS_HOST='$REDIS_PORT_6379_TCP_ADDR'\nBROKER_URL='amqp://guest:guest@$RABBITMQ_PORT_5672_TCP_ADDR:5672//'\nCELERY_RESULT_BACKEND='redis://$REDIS_PORT_6379_TCP_ADDR:6379'\"
> /config.py
&& export FRACTALIS_CONFIG=/config.py
&& celery worker -D -A fractalis:celery -l debug --concurrency=1
&& cd /tests
&& find . -type d -name '__pycache__' -exec rm -rf {} + \
&& pip3 install -r requirements.txt
&& flake8 /usr/local/lib/python3.6/site-packages/fractalis/
&& pytest --cov /usr/local/lib/python3.6/site-packages/fractalis/ tests/
&& flake8
&& pytest tests
"
- docker cp requirements.txt fractalis_tests:.
- docker cp tests/ fractalis_tests:.
- docker start -a fractalis_tests
dependencies:
- build:image
......
FROM python:3.6-stretch
ARG SDIST
COPY $SDIST .
RUN mkdir /app/
COPY $SDIST /app/
COPY requirements.txt /app/
COPY tests/ /app/tests/
WORKDIR /app/
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
r-bioc-limma \
&& pip3 install wheel gunicorn \
&& pip3 install fractalis-*.tar.gz \
&& rm fractalis-*.tar.gz \
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local -type d -name '__pycache__' -exec rm -rf {} +
r-bioc-limma
RUN pip3 install wheel
RUN pip3 install fractalis-*.tar.gz gunicorn
......@@ -9,7 +9,7 @@ services:
rabbitmq:
image: 'rabbitmq:alpine'
app:
image: 'sherzinger/fractalis:0.3.9'
image: 'sherzinger/fractalis:0.3.8'
volumes:
- ./config/fractalis/config.py:/config.py
environment:
......@@ -21,7 +21,7 @@ services:
- redis
- rabbitmq
worker:
image: 'sherzinger/fractalis:0.3.9'
image: 'sherzinger/fractalis:0.3.8'
volumes:
- ./config/fractalis/config.py:/config.py
environment:
......
......@@ -9,7 +9,7 @@ setup(
author='Sascha Herzinger',
author_email='sascha.herzinger@uni.lu',
url='https://git-r3lab.uni.lu/Fractalis/fractalis',
version='0.3.9',
version='0.3.8',
license='Apache2.0',
include_package_data=True,
python_requires='>=3.4.0',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment