diff --git a/.github/workflows/build-wiggletools-dockerfile.yml b/.github/workflows/build-wiggletools-dockerfile.yml new file mode 100644 index 0000000..0edd54e --- /dev/null +++ b/.github/workflows/build-wiggletools-dockerfile.yml @@ -0,0 +1,29 @@ +# Copyright (c) 2023 Roberto Rossini (roberros@uio.no) +# SPDX-License-Identifier: MIT + +name: Build wiggletools Dockerfile + +on: + push: + branches: [ main ] + paths: + - ".github/workflows/build-wiggletools-dockerfile.yml" + - ".github/workflows/build-dockerfile.yml" + - "containers/wiggletools*.Dockerfile" + pull_request: + branches: [ main ] + paths: + - ".github/workflows/build-wiggletools-dockerfile.yml" + - ".github/workflows/build-dockerfile.yml" + - "containers/wiggletools*.Dockerfile" + +jobs: + build-wiggletools-dockerfile: + name: Build wiggletools Dockerfile + uses: paulsengroup/2022-mcf10a-cancer-progression/.github/workflows/build-dockerfile.yml@main + with: + dockerfile-glob: "containers/wiggletools*.Dockerfile" + + permissions: + contents: read + packages: write diff --git a/containers/wiggletools__v1.2.11.Dockerfile b/containers/wiggletools__v1.2.11.Dockerfile new file mode 100644 index 0000000..7aa00f6 --- /dev/null +++ b/containers/wiggletools__v1.2.11.Dockerfile @@ -0,0 +1,37 @@ +# Copyright (C) 2023 Roberto Rossini +# +# SPDX-License-Identifier: MIT + +FROM mambaorg/micromamba:1.4.3 AS base + +ARG CONTAINER_VERSION +ARG MAMBA_DOCKERFILE_ACTIVATE=1 + +RUN if [ -z "$CONTAINER_VERSION" ]; then echo "Missing CONTAINER_VERSION --build-arg" && exit 1; fi + +RUN micromamba install -y \ + -c conda-forge \ + -c bioconda \ + procps-ng \ + ucsc-wigtobigwig \ + "wiggletools=${CONTAINER_VERSION}" \ +&& micromamba clean --all -y + + +WORKDIR /data + +ENV PATH="/opt/conda/bin:$PATH" +ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"] +CMD ["/bin/bash"] +WORKDIR /data + +RUN wiggletools --help +RUN whereis wigToBigWig + +LABEL org.opencontainers.image.authors='Roberto Rossini ' +LABEL org.opencontainers.image.url='https://github.com/paulsengroup/2022-mcf10a-cancer-progression' +LABEL org.opencontainers.image.documentation='https://github.com/paulsengroup/2022-mcf10a-cancer-progression' +LABEL org.opencontainers.image.source='https://github.com/paulsengroup/2022-mcf10a-cancer-progression' +LABEL org.opencontainers.image.licenses='MIT' +LABEL org.opencontainers.image.title="${CONTAINER_TITLE:-wiggletools}" +LABEL org.opencontainers.image.version="${CONTAINER_VERSION:-latest}"