1- FROM quay.io/ kbase/sdkbase2:python
1+ FROM kbase/sdkpython:3.8.0
22MAINTAINER KBase Developer
33
4- RUN apt-get clean all && apt-get update --fix-missing -y
4+ RUN apt-get clean all && apt-get update --fix-missing -y && apt-get upgrade -y
55
66# -----------------------------------------
77# In this section, you can install any system dependencies required
@@ -11,21 +11,19 @@ RUN apt-get clean all && apt-get update --fix-missing -y
1111RUN apt-get install -y gcc wget vim htop tmpreaper
1212RUN mkdir -p /etc/apt/sources.list.d
1313
14+ # Install condor
15+ RUN curl -fsSL https://get.htcondor.org | /bin/bash -s -- --no-dry-run
1416
15- RUN DEBIAN_FRONTEND=noninteractive wget -qO - https://research.cs.wisc.edu/htcondor/debian/HTCondor-Release.gpg.key | apt-key add - \
16- && echo "deb http://research.cs.wisc.edu/htcondor/debian/8.8/stretch stretch contrib" >> /etc/apt/sources.list \
17- && echo "deb-src http://research.cs.wisc.edu/htcondor/debian/8.8/stretch stretch contrib" >> /etc/apt/sources.list \
18- && apt-get update -y \
19- && apt-get install -y condor
17+ # Install jars for testing purposes
18+ # Uncomment this if you want to run tests inside the ee2 container on MacOSX
19+ # RUN cd /opt && git clone https://github.com/kbase/jars && cd -
2020
21- # install jars
22- # perhaps we should have test and prod dockerfiles to avoid jars and mongo installs in prod
23- RUN cd /opt \
24- && git clone https://github.com/kbase/jars \
25- && cd -
26-
27- # Remove due to cve-2021-4104 issue in spin (log4j)
28- RUN rm /opt/jars/lib/jars/dockerjava/docker-java-shaded-3.0.14.jar
21+
22+ # Install DOCKERIZE
23+ RUN curl -o /tmp/dockerize.tgz https://raw.githubusercontent.com/kbase/dockerize/dist/dockerize-linux-amd64-v0.5.0.tar.gz && \
24+ cd /usr/bin && \
25+ tar xvzf /tmp/dockerize.tgz && \
26+ rm /tmp/dockerize.tgz
2927
3028
3129# install mongodb
@@ -65,6 +63,10 @@ RUN mkdir -p /kb/module/work && chmod -R a+rw /kb/module && mkdir -p /etc/condor
6563WORKDIR /kb/module
6664RUN make all
6765
66+ # Remove Jars and old Conda for Trivy Scans and after compilation is done
67+ RUN rm -rf /sdk && rm -rf /opt
68+ RUN rm -rf /miniconda-latest/pkgs/conda-4.12.0-py39h06a4308_0/info/test/tests/data/env_metadata
69+
6870WORKDIR /kb/module/scripts
6971RUN chmod +x download_runner.sh && ./download_runner.sh
7072
0 commit comments