Skip to content

Commit

Permalink
Adding gnu-which to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Apr 3, 2024
1 parent c29cb27 commit 410da3d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
24 changes: 20 additions & 4 deletions docker/mpox-seek/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,32 @@ COPY mpox.yaml /opt2/mpox.yaml
RUN mkdir -p /opt2/conda/ \
&& wget -O /opt2/conda/Miniforge3_install.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" \
&& bash /opt2/conda/Miniforge3_install.sh -b -f -p /opt2/conda/ \
&& source "/opt2/conda/etc/profile.d/conda.sh" \
&& source "/opt2/conda/etc/profile.d/mamba.sh" \
&& . "/opt2/conda/etc/profile.d/conda.sh" \
&& . "/opt2/conda/etc/profile.d/mamba.sh" \
&& mamba env create -y --name mpox-seek --file=/opt2/mpox.yaml \
&& mamba clean --all -y
&& mamba clean --all -y \
&& rm -f /opt2/conda/Miniforge3_install.sh

# Install GNU which, increases compatiability
# with which distros included with Debian/Rocky
# linux installations, this version of which
# includes extra options that the ubuntu version
# does not have. The gnu verison is backwards
# compatiable with the ubunutu version.
RUN mkdir -p /opt2/ \
&& wget --no-check-certificate -O /opt2/which.tar.gz https://ftp.gnu.org/gnu/which/which-2.21.tar.gz \
&& tar -xvf /opt2/which.tar.gz -C /opt2/ \
&& rm /opt2/which.tar.gz \
&& cd /opt2/which-2.21/ \
&& ./configure --prefix=/opt2/which-2.21 \
&& make \
&& make install

################ POST #################
# Add Dockerfile and export environment
# variables and set java8 as default with links
# to alternative versions
ADD Dockerfile /opt2/mpox-seek.dockerfile
RUN chmod -R a+rX /opt2
ENV PATH="/opt/conda/envs/mpox-seek/bin:${PATH}"
ENV PATH="/opt2/conda/envs/mpox-seek/bin:/opt2/which-2.21/bin:${PATH}"
WORKDIR /data2
1 change: 1 addition & 0 deletions docker/mpox-seek/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Directly below are instructions for building an image using the provided Dockerf
docker image ls

# Build from Dockerfile
ln -f ../../workflow/envs/mpox.yaml .
docker build --no-cache -f Dockerfile --tag=mpox-seek:v0.1.0 .

# Testing, take a peek inside
Expand Down

0 comments on commit 410da3d

Please sign in to comment.