Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Refactoring dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dtsato committed Nov 26, 2019
1 parent e0e96cc commit 11f08cc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eu.gcr.io/continuous-intelligence/gocd-agent-docker-dind-dvc:v19.9.0
FROM eu.gcr.io/continuous-intelligence/cd4ml-workshop:latest

USER root

Expand Down
20 changes: 20 additions & 0 deletions Dockerfile_cd4ml_setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM continuumio/miniconda3:4.7.12-alpine

USER root

# Always use the local requirements.txt to override the cloned one
COPY requirements.txt /requirements.txt

ENV PATH=$PATH:/opt/conda/bin

RUN mkdir -p /app/continuous-intelligence \
&& apk --no-cache add git nano bash \
&& git clone https://github.com/ThoughtWorksInc/continuous-intelligence-workshop.git /app/continuous-intelligence \
&& mv /requirements.txt /app/continuous-intelligence/requirements.txt \
&& cd /app/continuous-intelligence \
&& mkdir -p /app/continuous-intelligence/data/raw \
&& pip install --no-cache-dir --no-compile -r requirements.txt \
&& conda list && conda clean -tipy \
&& python /app/continuous-intelligence/src/download_data.py

CMD ["/app/continuous-intelligence/start.sh"]
19 changes: 0 additions & 19 deletions Dockerfile_continuous-intelligence-setup

This file was deleted.

0 comments on commit 11f08cc

Please sign in to comment.