|
1 | 1 | FROM ubuntu:20.04
|
2 | 2 |
|
| 3 | +# Note that these labels need to be manually updated with the actual contents of the image |
3 | 4 | LABEL maintainer="scanon@lbl.gov"
|
4 | 5 | LABEL us.kbase.ubuntu="20.04"
|
5 |
| -LABEL us.kbase.python="3.8.4" |
6 |
| -LABEL us.kbase.sdk="1.0.18" |
| 6 | +LABEL us.kbase.python="3.9.12" |
| 7 | +LABEL us.kbase.sdk="1.2.1" |
| 8 | +LABEL us.kbase.sdkcommit="8def489f648a7ff5657d33ed05f41c60f4766e1b" |
7 | 9 |
|
| 10 | +# Fix KBase Catalog Registration Issue |
| 11 | +ENV PIP_PROGRESS_BAR=off |
| 12 | + |
| 13 | +# Install system dependencies |
8 | 14 | RUN \
|
9 | 15 | apt-get -y update && \
|
| 16 | + apt-get -y upgrade && \ |
10 | 17 | export DEBIAN_FRONTEND=noninteractive && \
|
11 | 18 | export TZ=Etc/UTC && \
|
12 |
| - apt-get -y install gcc make curl git openjdk-8-jre |
| 19 | + apt-get -y install gcc make curl git openjdk-8-jre unzip htop |
13 | 20 |
|
14 | 21 | # Copy in the SDK
|
15 |
| -COPY --from=kbase/kb-sdk:20180808 /src /sdk |
| 22 | +COPY --from=kbase/kb-sdk:1.2.1 /src /sdk |
16 | 23 | RUN sed -i 's|/src|/sdk|g' /sdk/bin/*
|
17 | 24 |
|
| 25 | + |
| 26 | +# Install Conda version py39_4.12.0 and Python 3.9.12 |
| 27 | +ENV CONDA_VERSION=py39_4.12.0 |
| 28 | +ENV CONDA_INSTALL_DIR=/opt/conda/py39_4.12.0 |
| 29 | + |
18 | 30 | RUN \
|
19 |
| - V=py38_4.10.3 && \ |
20 |
| - curl -o conda.sh -s https://repo.anaconda.com/miniconda/Miniconda3-${V}-Linux-x86_64.sh && \ |
21 |
| - sh ./conda.sh -b -p /opt/conda3 && \ |
| 31 | + echo "Installing to ${CONDA_INSTALL_DIR}" && \ |
| 32 | + curl -o conda.sh -s https://repo.anaconda.com/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh && \ |
| 33 | + sh ./conda.sh -b -p ${CONDA_INSTALL_DIR} && \ |
22 | 34 | rm conda.sh
|
23 | 35 |
|
24 |
| -ENV PATH=/opt/conda3/bin:$PATH:/sdk/bin |
| 36 | +# Add in some legacy modules |
25 | 37 |
|
26 |
| -# Install packages including mamba |
27 |
| -RUN \ |
28 |
| - conda install -c conda-forge mamba |
| 38 | +ADD biokbase $CONDA_INSTALL_DIR/lib/biokbase |
| 39 | +ADD biokbase/user-env.sh /kb/deployment/user-env.sh |
| 40 | +ADD requirements.txt /tmp/requirements.txt |
29 | 41 |
|
30 |
| -ADD ./requirements.txt /tmp/ |
31 |
| -RUN \ |
32 |
| - pip install -r /tmp/requirements.txt |
| 42 | +ENV PATH=$CONDA_INSTALL_DIR/bin:/sdk/bin:$PATH |
| 43 | +run env |
33 | 44 |
|
34 |
| -# Add in some legacy modules |
35 |
| -ADD biokbase /opt/conda3/lib/python3.8/site-packages/biokbase |
| 45 | +# Configure Conda and Install Mamba |
| 46 | +RUN \ |
| 47 | + conda config --add channels conda-forge && \ |
| 48 | + conda config --set channel_priority strict && \ |
| 49 | + conda install -y mamba=0.15.3 |
36 | 50 |
|
| 51 | +#Install packages required for base image |
| 52 | +RUN \ |
| 53 | + which pip && \ |
| 54 | + pip install -r /tmp/requirements.txt |
0 commit comments