Skip to content

Commit

Permalink
Update devel Dockerfile to use latest ubuntu 20.04 and Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Nov 24, 2020
1 parent a2b9512 commit bce274a
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions packaging/docker_compose/local_executor/cwl_airflow/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

###############################################################################
# Software: CWL-Airflow
# Software Version: latest commit from master
# Image Version: 0.0.1
# Software Version: always latest commit from master
# Image Version: latest
# Description: CWL-Airflow image for LocalExecutor and MYSQL backend
# using default Python 3.8
# Website: https://cwl-airflow.readthedocs.io/en/latest/
# Provides: Airflow, CWL-Airflow, cwltool
# Base Image: ubuntu:18.04
# Base Image: ubuntu:20.04
# Build Cmd: docker build --rm -t biowardrobe2/cwl-airflow:latest .
###############################################################################


FROM ubuntu:18.04
FROM ubuntu:20.04
LABEL maintainer="misha.kotliar@gmail.com"
ENV DEBIAN_FRONTEND noninteractive

Expand All @@ -21,15 +22,15 @@ ENV CWL_AIRFLOW_VERSION "master"
ENV CWL_AIRFLOW_URL "https://github.com/Barski-lab/cwl-airflow"

RUN apt-get update && \
apt-get install -y nodejs python3-dev libmysqlclient-dev python3-pip gcc git wget curl && \
pip3 install -U pip && \
git clone ${CWL_AIRFLOW_URL} && \
cd cwl-airflow && \
git checkout ${CWL_AIRFLOW_VERSION} && \
pip3 install ".[mysql]" && \
cd .. && \
rm -rf cwl-airflow && \
apt-get clean && \
apt-get purge && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* && \
apt-get install -y python3-dev python3-pip nodejs gcc git wget curl libmysqlclient-dev && \
pip3 install -U pip && \
git clone ${CWL_AIRFLOW_URL} && \
cd cwl-airflow && \
git checkout ${CWL_AIRFLOW_VERSION} && \
pip3 install ".[mysql,crypto]" --constraint ./packaging/constraints/constraints-3.8.txt && \
cd .. && \
rm -rf cwl-airflow && \
apt-get clean && \
apt-get purge && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* && \
strip /usr/local/bin/*; true

0 comments on commit bce274a

Please sign in to comment.