Skip to content

Commit

Permalink
Update hictk-bench Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Jan 28, 2024
1 parent f86bfc1 commit 2bad3e9
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions containers/hictk-bench__v2.0.0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,14 @@
#
# SPDX-License-Identifier: MIT

FROM curlimages/curl:8.2.0 AS downloader

ARG CONTAINER_VERSION
ARG HICTOOLS_VER=3.30.00


ARG HICTOOLS_URL="https://github.com/aidenlab/HiCTools/releases/download/v${HICTOOLS_VER}/hic_tools.${HICTOOLS_VER}.jar"
ARG HICTOOLS_SHA256='2b09b0642a826ca5730fde74e022461a708caf62ed292bc5baaa841946721867'

RUN cd /tmp \
&& curl -LO "$HICTOOLS_URL" \
&& curl -L 'https://raw.githubusercontent.com/aidenlab/HiCTools/6b2fab8e78685deae199c33bbb167dcab1dbfbb3/LICENSE' -o hic_tools.LICENSE \
&& echo "$HICTOOLS_SHA256 $(basename "$HICTOOLS_URL")" >> checksum.sha256 \
&& sha256sum -c checksum.sha256 \
&& chmod 644 *.jar *LICENSE


FROM ghcr.io/paulsengroup/hictk:0.0.5 AS base
FROM ghcr.io/paulsengroup/hictk:0.0.7 AS base

ARG CONTAINER_VERSION

RUN if [ -z "$CONTAINER_VERSION" ]; then echo "Missing CONTAINER_VERSION --build-arg" && exit 1; fi

COPY --from=downloader --chown=root:root /tmp/hic_tools*.jar /usr/local/share/java/hic_tools/
COPY --from=downloader --chown=root:root /tmp/hic_tools.LICENSE /usr/local/share/licenses/hic_tools/LICENSE

RUN ln -s /usr/local/share/java/hic_tools/hic_tools*.jar /usr/local/share/java/hic_tools/hic_tools.jar
ENV HICTOOLS_JAR=/usr/local/share/java/hic_tools/hic_tools.jar

RUN apt-get update \
&& apt-get install -y \
openjdk-19-jre-headless \
pigz \
procps \
time \
zstd \
Expand All @@ -43,7 +18,6 @@ RUN apt-get update \
WORKDIR /data

RUN hictk --version
RUN java -jar "$HICTOOLS_JAR"

LABEL org.opencontainers.image.authors='Roberto Rossini <roberros@uio.no>'
LABEL org.opencontainers.image.url='https://github.com/paulsengroup/2023-hictk-paper'
Expand Down

0 comments on commit 2bad3e9

Please sign in to comment.