Create separate test dockerfile

parent 8bf6652b
Pipeline #33827 canceled with stages
in 6 minutes and 53 seconds
......@@ -20,12 +20,12 @@ build-image:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
script:
- mkdir docker
- cp Dockerfile docker/
- cp test.Dockerfile docker/
- cp environment.yml docker/
- cp package.json docker/
- /kaniko/executor
--context $CI_PROJECT_DIR/docker
--dockerfile $CI_PROJECT_DIR/docker/Dockerfile
--dockerfile $CI_PROJECT_DIR/docker/test.Dockerfile
--destination $TEST_IMAGE
--cache=true
......@@ -38,9 +38,6 @@ build:
<<: *conda-env
stage: build
script:
- ls -lah
- yarn list
- ls node_modules -lah
- python3 -m compileall zesje
- yarn build
artifacts:
......
......@@ -2,7 +2,7 @@
FROM continuumio/miniconda3
RUN apt-get -o Acquire::Check-Valid-Until=false update && \
RUN apt-get update && \
apt-get install -y \
curl \
poppler-utils build-essential libgl1-mesa-glx \
......@@ -10,25 +10,15 @@ RUN apt-get -o Acquire::Check-Valid-Until=false update && \
&& \
apt-get -y --quiet install git supervisor nginx
WORKDIR /yarn
# Setup PYTHON packages
WORKDIR /app
ADD environment.yml .
RUN conda env create && conda clean --all
ADD environment.yml /app/environment.yml
RUN conda env create
# From https://medium.com/@chadlagore/conda-environments-with-docker-82cdc9d25754
RUN echo "source activate zesje-dev" > ~/.bashrc
ENV PATH /opt/conda/envs/zesje-dev/bin:$PATH
RUN rm environment.yml
RUN echo "source activate $(head -1 /app/environment.yml | cut -d' ' -f2)" > ~/.bashrc
ENV PATH /opt/conda/envs/$(head -1 /app/environment.yml | cut -d' ' -f2)/bin:$PATH
# Setup YARN packages
ADD package.json .
RUN yarn install
RUN rm package.json
WORKDIR /app
RUN rm /app/environment.yml
CMD bash
# A Dockerfile containing the production deployment for Zesje
FROM continuumio/miniconda3
RUN apt-get -o Acquire::Check-Valid-Until=false update && \
apt-get install -y libdmtx0b
# Setup PYTHON packages
ADD environment.yml .
RUN conda env create && conda clean --all
# From https://medium.com/@chadlagore/conda-environments-with-docker-82cdc9d25754
RUN echo "source activate zesje-dev" > ~/.bashrc
ENV PATH /opt/conda/envs/zesje-dev/bin:$PATH
RUN rm environment.yml
# Setup YARN packages
ADD package.json .
RUN yarn install
RUN rm package.json
WORKDIR /app
CMD bash
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