Skip to content

Commit

Permalink
Merge branch 'dev' into add_tests_for_2833
Browse files Browse the repository at this point in the history
  • Loading branch information
asp8200 authored Mar 12, 2024
2 parents 336f8b4 + 9f78a5e commit b079de9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Switch to setup-nf-test ([#2834](https://github.com/nf-core/tools/pull/2834))
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.3.2 ([#2836](https://github.com/nf-core/tools/pull/2836))
- Add tests for assignment and referencing of params in main.nf ([#2841](https://github.com/nf-core/tools/pull/2841))
- Optimize layers in dockerfile ([#2842](https://github.com/nf-core/tools/pull/2842))
- Update gitpod/workspace-base Docker digest to 1e133e5 ([#2843](https://github.com/nf-core/tools/pull/2843))

## [v2.13.1 - Tin Puppy Patch](https://github.com/nf-core/tools/releases/tag/2.13) - [2024-02-29]
Expand Down
34 changes: 15 additions & 19 deletions nf_core/gitpod/gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ USER root
# Install util tools.
# software-properties-common is needed to add ppa support for Apptainer installation
RUN apt-get update --quiet && \
apt-get install --quiet --yes \
apt-get install --quiet --yes --no-install-recommends \
apt-transport-https \
apt-utils \
sudo \
Expand All @@ -18,18 +18,17 @@ RUN apt-get update --quiet && \
curl \
tree \
graphviz \
software-properties-common

# Install Apptainer (Singularity)
RUN add-apt-repository -y ppa:apptainer/ppa && \
software-properties-common && \
add-apt-repository -y ppa:apptainer/ppa && \
apt-get update --quiet && \
apt install -y apptainer

# Install Conda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
apt-get install --quiet --yes apptainer && \
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \
rm Miniconda3-latest-Linux-x86_64.sh
rm Miniconda3-latest-Linux-x86_64.sh && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Set PATH for Conda
ENV PATH="/opt/conda/bin:$PATH"

# Add the nf-core source files to the image
Expand All @@ -47,23 +46,20 @@ RUN conda config --add channels defaults && \
conda config --add channels conda-forge && \
conda config --set channel_priority strict && \
conda install --quiet --yes --name base \
mamba \
nextflow \
nf-core \
nf-test \
prettier \
pre-commit \
ruff \
mypy \
openjdk \
pytest-workflow && \
conda clean --all --force-pkgs-dirs --yes

# Update Nextflow
RUN nextflow self-update

# Install nf-core
RUN python -m pip install . --no-cache-dir
# Update Nextflow and Install nf-core
RUN nextflow self-update && \
python -m pip install . --no-cache-dir

# Setup pdiff for nf-test diffs
RUN export NFT_DIFF="pdiff" && \
export NFT_DIFF_ARGS="--line-numbers --expand-tabs=2"
ENV NFT_DIFF="pdiff"
ENV NFT_DIFF_ARGS="--line-numbers --expand-tabs=2"

0 comments on commit b079de9

Please sign in to comment.