-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update base image #8228
Update base image #8228
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# These are files that for whatever reason we don't want to include in our distribution docker images | ||
src/test/resources | ||
src/test/resources/* | ||
build/ | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Using OpenJDK 8 | ||
# Using OpenJDK 17 | ||
# This Dockerfile does not require any files that are in the GATK4 repo. | ||
FROM ubuntu:18.04 | ||
|
||
#### Basic image utilities | ||
RUN apt-get update && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OpenJDK 8 reference on line 1 but GitHub won't let me comment there There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mcovarr Thank you, good catch! |
||
apt-get upgrade -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
python \ | ||
python3 \ | ||
wget \ | ||
curl \ | ||
bc \ | ||
|
@@ -15,23 +15,27 @@ RUN apt-get update && \ | |
less \ | ||
bedtools \ | ||
samtools \ | ||
openjdk-8-jdk \ | ||
tabix \ | ||
gpg-agent \ | ||
build-essential \ | ||
openjdk-17-jdk \ | ||
software-properties-common && \ | ||
apt-get -y clean && \ | ||
apt-get -y autoclean && \ | ||
apt-get -y autoremove | ||
|
||
RUN java -version | ||
|
||
#### Specific for google cloud support | ||
RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ | ||
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ | ||
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ | ||
apt-get update -y && apt-get install google-cloud-sdk -y && \ | ||
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" \ | ||
| tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | ||
| apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \ | ||
apt-get update -y && \ | ||
apt-get install -y --no-install-recommends google-cloud-cli && \ | ||
apt-get -y clean && \ | ||
apt-get -y autoclean && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm so glad someone knows how todo this... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect I'm repeating myself because I don't really know how to do it. Throw all the cleaning at the wall and hope something sticks. |
||
apt-get -y autoremove && \ | ||
apt-get -y clean | ||
########### | ||
find / -wholename "*__pycache__/*.pyc" -exec rm {} + | ||
|
||
# Set environment variables. | ||
ENV HOME /root | ||
|
@@ -43,9 +47,6 @@ WORKDIR /root | |
CMD ["bash"] | ||
|
||
ENV JAVA_LIBRARY_PATH /usr/lib/jni | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ | ||
|
||
RUN java -version | ||
|
||
# Install miniconda | ||
ENV DOWNLOAD_DIR /downloads | ||
|
@@ -56,7 +57,12 @@ RUN mkdir $DOWNLOAD_DIR && \ | |
wget -nv -O $DOWNLOAD_DIR/miniconda.sh $CONDA_URL && \ | ||
test "`md5sum $DOWNLOAD_DIR/miniconda.sh | awk -v FS=' ' '{print $1}'` = $CONDA_MD5" && \ | ||
bash $DOWNLOAD_DIR/miniconda.sh -p $CONDA_PATH -b && \ | ||
rm $DOWNLOAD_DIR/miniconda.sh | ||
rm $DOWNLOAD_DIR/miniconda.sh && \ | ||
${CONDA_PATH}/bin/conda clean -afy && \ | ||
find /opt/miniconda/ -follow -type f -name '*.a' -delete && \ | ||
find /opt/miniconda/ -follow -type f -name '*.pyc' -delete && \ | ||
rm -rf /root/.cache/pip | ||
|
||
|
||
# Deleting unneeded caches | ||
RUN rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good idea....