Commit 17c458b4 authored by Glenn Hickey's avatar Glenn Hickey
Browse files

revert gpu docker to ubuntu 20.04

parent 3fef6cd1
Pipeline #1768 passed with stage
in 75 minutes and 21 seconds
......@@ -62,7 +62,10 @@ RUN rm -rf /home/cactus/hal_lib && \
FROM quay.io/comparative-genomics-toolkit/ubuntu:22.04
# apt dependencies for runtime
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git python3 python3-pip python3-distutils zlib1g libbz2-1.0 net-tools libhdf5-103 liblzo2-2 libtokyocabinet9 libkrb5-3 libk5crypto3 time liblzma5 libcurl4 libcurl4-gnutls-dev libxml2 libgomp1 libffi7 glibc-tools
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git python3 python3-pip python3-distutils zlib1g libbz2-1.0 net-tools libhdf5-103 liblzo2-2 libtokyocabinet9 libkrb5-3 libk5crypto3 time liblzma5 libcurl4 libcurl4-gnutls-dev libxml2 libgomp1 libffi7
# required for ubuntu22 but won't work anywhere else
RUN if ! command -v catchsegv &> /dev/null; then apt-get install glibc-tools; fi
# copy cactus runtime essentials (note: important cactus_env keeps its path)
RUN mkdir /home/cactus
......
......@@ -24,7 +24,8 @@ git checkout "${REL_TAG}"
git submodule update --init --recursive
CFLAGS="" CXXFLAGS="" docker build . -f Dockerfile.segalign -t segalign:local
sed '0,/FROM/! s/FROM.*/FROM segalign:local/' Dockerfile > Dockerfile.gpu
# switch the runtime image to segalign, and revert build back to ubuntu 20 (to match segalign's system)
sed '0,/FROM/! s/FROM.*/FROM segalign:local/' Dockerfile | sed -e 's/ubuntu:22.04/ubuntu:20.04/g'> Dockerfile.gpu
# enable gpu by default
sed -i src/cactus/cactus_progressive_config.xml -e 's/gpuLastz="false"/gpuLastz="true"/g' -e 's/realign="1"/realign="0"/'
docker build . -f Dockerfile.gpu -t ${dockname}:$(getLatestReleaseTag)-gpu
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment