Skip to content

Commit

Permalink
Add wiggletools Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Aug 13, 2023
1 parent c39cde6 commit fcaa522
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-wiggletools-dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) 2023 Roberto Rossini ([email protected])
# 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
37 changes: 37 additions & 0 deletions containers/wiggletools__v1.2.11.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright (C) 2023 Roberto Rossini <[email protected]>
#
# 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 <[email protected]>'
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}"

0 comments on commit fcaa522

Please sign in to comment.