+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
80b0182
Renaming Dockerfile and location. Changing to building the Dockerfile…
JulianFlesch May 14, 2025
7a8cebd
change Container user. Change base Image for devcontainer
JulianFlesch May 14, 2025
5fd706a
Remove installation of apptainer via apt-get because of 404 from ppa
JulianFlesch May 14, 2025
0d6e6a5
Create unprivileged user
JulianFlesch May 14, 2025
be2996e
Change git workflow for container creation and use the correct contai…
JulianFlesch May 14, 2025
53dd172
Update instruction to build locally for testing
JulianFlesch May 14, 2025
dd6ddc3
[automated] Update CHANGELOG.md
nf-core-bot May 14, 2025
0c3a21d
Merge branch 'issues/3466-gitpod' of github.com:JulianFlesch/nf-core-…
JulianFlesch May 14, 2025
464d3bd
More descriptive changelog entry
JulianFlesch May 14, 2025
2ee5fc1
Change base Image
JulianFlesch May 20, 2025
776b2c8
Change back to using gitpod user
JulianFlesch May 20, 2025
a5c6644
Remove comment
JulianFlesch May 20, 2025
c77a469
WIP: build container locally instead of pulling. Change to gitpod use…
JulianFlesch May 20, 2025
36e5f7a
Rename pushed container to nf-core/devcontainer
JulianFlesch May 20, 2025
4f8a2c0
Remove gitpod.yml from template
JulianFlesch May 20, 2025
c225114
Remove .gitpod.yml
JulianFlesch May 20, 2025
56962f2
Merge branch 'dev' into issues/3466-gitpod
JulianFlesch May 20, 2025
f525657
Remove local container building
JulianFlesch May 20, 2025
e0e6d97
Change base image tag
JulianFlesch May 20, 2025
923d99d
re-add comments
JulianFlesch May 20, 2025
b5e7487
Add latest tag explicitly
JulianFlesch May 20, 2025
8785edb
Test seqera container base image
JulianFlesch May 20, 2025
cccb21c
update comments. todo
JulianFlesch May 20, 2025
774b4cd
Rename to reflect base image
JulianFlesch May 20, 2025
0091a34
WIP: devcontainer with docker-in-docker feature
JulianFlesch May 20, 2025
875d661
Add seqera url as comment
JulianFlesch May 20, 2025
6a2c92d
Overwrite base image entrypoint. Add non-privileged user.
JulianFlesch May 27, 2025
77a8357
Clean up
JulianFlesch May 27, 2025
0aa49b3
Make user privileged when running container
JulianFlesch May 27, 2025
e9fa6df
Change to non-root user 'vscode' from base image. Try running without…
JulianFlesch May 27, 2025
552b0ff
Run privileged
JulianFlesch May 27, 2025
dd021d0
Change nf-core install to have dev dependencies and --editable set
JulianFlesch May 27, 2025
64e86d5
Install pre-commit hooks in image
JulianFlesch May 27, 2025
9eda307
Remove redundant post-create installation of nf-core and pre-commit h…
JulianFlesch May 27, 2025
d0fea24
Remove postCreateCommand. Remove Privileged
JulianFlesch May 27, 2025
d974952
Fix pre-commit install cmd
JulianFlesch May 27, 2025
3216521
Remove more redundant conda packages
JulianFlesch May 27, 2025
e400076
Chown nf-core dir when copying. Chown conda folder only when using conda
JulianFlesch May 27, 2025
7e1aba2
Remove unneeded dependencies and those already in base image
JulianFlesch May 27, 2025
14a3e95
Fix command end
JulianFlesch May 27, 2025
6d284fb
WIP: Comment out section adding lots of size to the image
JulianFlesch May 27, 2025
5d8503b
Use vscode user everywhere
JulianFlesch May 27, 2025
08d29fc
Re-introduce nextflow update, nf-core dev, and commit hooks install
JulianFlesch May 27, 2025
c5dd2d2
Use nextflow/training base image to share nextflow, conda installation
JulianFlesch May 27, 2025
0fa9993
Add setup.sh to fix run issues with nf/training img. Move latest tool…
JulianFlesch May 28, 2025
2eceaf7
change ownership of nextflow installation location
JulianFlesch May 28, 2025
4b825df
Update comment. Change layer order
JulianFlesch May 28, 2025
d7854ff
Update template devcontainer
JulianFlesch May 28, 2025
3dff96d
Remove testing Dockerfiles
JulianFlesch May 28, 2025
4e9d298
Merge branch 'dev' into issues/3466-gitpod
JulianFlesch Jun 17, 2025
a7b5c48
Fix base image version
JulianFlesch Jul 14, 2025
4a55651
Fix sha typo
JulianFlesch Jul 14, 2025
cd292aa
WIP: Build locally for testing image changes
JulianFlesch Jul 14, 2025
2f55746
Remove container build
JulianFlesch Jul 14, 2025
df3bd4b
Change to root user
JulianFlesch Jul 17, 2025
7de59cb
Add apptainer as local feature
JulianFlesch Jul 17, 2025
fb5ca93
Use existing tutorial baseimage and instead mount current folder.
JulianFlesch Jul 17, 2025
403f3e3
Remove docker-in-docker feature to avoid interference with parent fea…
JulianFlesch Jul 17, 2025
24a05c7
Change container prompt to cope with long paths
JulianFlesch Jul 17, 2025
c00b89a
update welcome message
JulianFlesch Jul 17, 2025
0398115
Remove obsolete Dockerfile
JulianFlesch Jul 17, 2025
d99a896
Change template devcontainer to reuse training base image, fix docker…
JulianFlesch Jul 17, 2025
65e8cb4
Custom prompt to cope with long paths. Updates welcome message
JulianFlesch Jul 17, 2025
19066ee
Custom prompt to cope with long paths. Updates welcome message
JulianFlesch Jul 17, 2025
d82eac5
Add nf-core, pre-commit hook install to setup. Update welcome message
JulianFlesch Jul 17, 2025
685a8d8
Add local features nf-test, apptainer. (Util fixed in parent)
JulianFlesch Jul 17, 2025
def9bf2
Add nf-test also to tools devcontainer as local feature
JulianFlesch Jul 17, 2025
4918d6c
Adapt git workflow to build with devcontainer ci
JulianFlesch Jul 18, 2025
b1079a5
Adds devcontaner config for building.
JulianFlesch Jul 18, 2025
9a9c266
Simplified devcontainer config for running. Removes all feature insta…
JulianFlesch Jul 18, 2025
5622095
Change workflow for release to build with devcontainer ci
JulianFlesch Jul 18, 2025
491ec95
Change to using prebuild image. Remove local feature installs. Simpli…
JulianFlesch Jul 18, 2025
2308afc
Fix devcontainers/ci version by sha
JulianFlesch Jul 18, 2025
355f913
Testing: run workflow on personal feature branch temporarily
JulianFlesch Jul 18, 2025
e1fcc09
Testing: Add workflow_dispatch to run wf manually
JulianFlesch Jul 18, 2025
8559593
Testing: Remove repo constraint
JulianFlesch Jul 18, 2025
ce0cf88
Move local features into build-devcontainer
JulianFlesch Jul 18, 2025
22bbccf
Use no cache for build
JulianFlesch Jul 18, 2025
ca5fba7
testing buildx config
JulianFlesch Jul 18, 2025
60a0154
Testing container deploy
JulianFlesch Jul 18, 2025
66755be
Testing deployed image in codespaces
JulianFlesch Jul 19, 2025
b9a5e94
Testing: Limit to only devcontainer image build+push
JulianFlesch Jul 19, 2025
6febca6
Test tools build + upload
JulianFlesch Jul 19, 2025
67bb3d6
Use devcontainer-cli to run build
JulianFlesch Jul 20, 2025
4e38437
Fix workflow
JulianFlesch Jul 20, 2025
89c06c3
testing: devcontainer ci build with manual comand
JulianFlesch Jul 20, 2025
fb7af6e
Revert to using devcontainers/ci action. Remove imageTag
JulianFlesch Jul 20, 2025
50a157e
Testing auto pushing
JulianFlesch Jul 20, 2025
363c702
Testing manual push
JulianFlesch Jul 20, 2025
fa096bc
Revert "Testing manual push"
JulianFlesch Jul 21, 2025
386d37a
Improve naming. Reorder Steps for readability
JulianFlesch Jul 21, 2025
acd7af3
Update devcontainers build and push in release workflow.
JulianFlesch Jul 21, 2025
7ee9751
Update comment
JulianFlesch Jul 21, 2025
fee17eb
Changes for manually testing release workflow
JulianFlesch Jul 21, 2025
361a0c3
revert changing workflow trigger
JulianFlesch Jul 21, 2025
2ad4f37
Add docker buildx to fix oci builds error
JulianFlesch Jul 21, 2025
01b2f49
Fix testing registry names
JulianFlesch Jul 21, 2025
af6b3e6
Testing action/checkout with push hook
JulianFlesch Jul 21, 2025
171b31f
Testing action/checkout with push hook
JulianFlesch Jul 21, 2025
a7f2fb6
Testing: Run on push to dev
JulianFlesch Jul 21, 2025
1af5545
Change path of setup script
JulianFlesch Jul 21, 2025
2645a76
Change container tag for testing
JulianFlesch Jul 21, 2025
11a79b3
Don't run any commands for testing
JulianFlesch Jul 21, 2025
09a1bb8
Fix nf-test download in tools Dockerfile
JulianFlesch Jul 21, 2025
d748c35
Add nextflow feature
JulianFlesch Jul 21, 2025
d36f5af
Adds local and public featuers to config
JulianFlesch Jul 21, 2025
20ce3f3
Remove redundant nf-test install
JulianFlesch Jul 21, 2025
b494895
Move tools installation to Dockerfile to install version in current w…
JulianFlesch Jul 21, 2025
a6958a3
Clean unused line
JulianFlesch Jul 21, 2025
fa91962
Run setup.sh on devcontainer startup with nextflow update, prompt con…
JulianFlesch Jul 21, 2025
70a66cb
adds workflow_dispatch trigger
JulianFlesch Jul 21, 2025
99c701c
Add qemu action for multi platform build
JulianFlesch Jul 21, 2025
4316c6d
Change call to setup.sh and make it executable
JulianFlesch Jul 21, 2025
85e2572
Test building nfcore-tools image for more platforms
JulianFlesch Jul 21, 2025
c8c3db4
Use buildx for nfcore tools image
JulianFlesch Jul 21, 2025
47b8e5d
Use buildx for multi-platform build and to handle push. Use login-act…
JulianFlesch Jul 21, 2025
ccc72b7
Fix secrets
JulianFlesch Jul 21, 2025
3a53655
Add targets to buildx
JulianFlesch Jul 21, 2025
365a1fb
Fix build command
JulianFlesch Jul 21, 2025
5258b94
Test using variable
JulianFlesch Jul 21, 2025
0be623a
Fix reference to env variables
JulianFlesch Jul 21, 2025
adfd85e
Fix actions version to sha
JulianFlesch Jul 22, 2025
45050e9
Update release workflow for testing
JulianFlesch Jul 22, 2025
4c758ba
Change to installing nf-test via conda in devcontainer
JulianFlesch Jul 22, 2025
333bcab
Remove post install commands for nf-test
JulianFlesch Jul 22, 2025
11d1337
Remove unused local feature
JulianFlesch Jul 22, 2025
1234279
Adds retry for tools image build
JulianFlesch Jul 22, 2025
7fee45c
Fix retry time
JulianFlesch Jul 22, 2025
18f51e5
Adds required field
JulianFlesch Jul 22, 2025
bd96723
Lower tools image build timeout. Retry on error+timeout (default)
JulianFlesch Jul 22, 2025
58af5d6
Revert testing config
JulianFlesch Jul 22, 2025
16a0a5a
Adapt timeout to have more leeway
JulianFlesch Jul 22, 2025
3be9da3
Merge changes from dev
JulianFlesch Jul 22, 2025
bce4da7
Move changes to 3.4.0dev
JulianFlesch Jul 22, 2025
bc08cfc
Remove local features from pipeline template
JulianFlesch Aug 1, 2025
f5d072c
Update .devcontainer/setup.sh welcome text
JulianFlesch Aug 1, 2025
6d0ebd9
Add ruff formatter to extensions list
JulianFlesch Aug 1, 2025
fc27a21
Merge branch 'issues/3466-gitpod' of github.com:JulianFlesch/nf-core-…
JulianFlesch Aug 1, 2025
8a29fe4
Add explicit versioning of features
JulianFlesch Aug 1, 2025
d19c681
Fix typo
JulianFlesch Aug 1, 2025
bfa7fc0
Fix feature versioning
JulianFlesch Aug 1, 2025
15458e4
Remove gitpod from template_features
JulianFlesch Aug 1, 2025
303d6bc
Add jinja variable for pipelien name to greeting
JulianFlesch Aug 1, 2025
c2acb3a
Adapt feature install for debian based image
JulianFlesch Aug 1, 2025
34667b0
Change to using miniconda base image to avoid python version conflict…
JulianFlesch Aug 1, 2025
8ba78cb
Fix typo
JulianFlesch Aug 1, 2025
df6520f
Move extension install to parent container.
JulianFlesch Aug 1, 2025
98f0eb3
Clean up redundant config section.
JulianFlesch Aug 1, 2025
7bc7fff
Merge current dev
JulianFlesch Aug 1, 2025
d747823
WIP: Fix tests
JulianFlesch Aug 1, 2025
d3a465b
Add setup.sh linter exception. don't expect any .devcotonainer files …
JulianFlesch Aug 4, 2025
6d8c9ba
Add snapshots to fix tests with changed template_features.
JulianFlesch Aug 4, 2025
f2ed52a
Remove mounting localWorkspaceFolder due to issues in Codespaces.
JulianFlesch Aug 8, 2025
20e8388
Use other base image for testing
JulianFlesch Aug 8, 2025
ef51e49
Remove localWorkspaceFolder mounting
JulianFlesch Aug 8, 2025
3008aae
Update comment
JulianFlesch Aug 8, 2025
4cef0dc
Revert "Use other base image for testing"
JulianFlesch Aug 8, 2025
ac8b88c
Remove checking for devcontainer files
JulianFlesch Aug 20, 2025
c83bd63
Merge dev changes. Update test_create_app snapshots
JulianFlesch Aug 20, 2025
f772a74
Use tag 'latest', since sha updates would be out dated with current w…
JulianFlesch Aug 20, 2025
b7672cc
Removes hook from no longer used feature
JulianFlesch Aug 22, 2025
f85bbbf
Merge branch 'dev' into issues/3466-gitpod
JulianFlesch Aug 29, 2025
063ec8b
Merge branch 'dev' into issues/3466-gitpod
JulianFlesch Aug 29, 2025
73bd04b
Merge branch 'issues/3466-gitpod' of github.com:JulianFlesch/nf-core-…
JulianFlesch Sep 1, 2025
717fd8e
fix tests: Update snapshots
JulianFlesch Sep 1, 2025
fce08cf
impr: Cleanup after pip and conda
JulianFlesch Sep 1, 2025
04c14dd
impr: Move nf-test and nextflow install to Dockerfile to reduce their…
JulianFlesch Sep 1, 2025
5fb202d
impr: Add two-stage build to only keep essential files
JulianFlesch Sep 1, 2025
86b1976
fix typo: remove duplicate line
JulianFlesch Sep 1, 2025
b4335b2
impr: Move apptainer install to Dockerfile to improve container size
JulianFlesch Sep 1, 2025
6c1596c
cleanup: remove unused features and update comments
JulianFlesch Sep 1, 2025
285a2a1
impr: Use more lean base image for final stage.
JulianFlesch Sep 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .devcontainer/build-devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# devcontainers/miniconda image based on debian (bookworm)
# see tags and images: https://mcr.microsoft.com/en-us/artifact/mar/devcontainers/miniconda/tags
FROM "mcr.microsoft.com/devcontainers/miniconda@sha256:8e262a2664fab1d53054738d3633338558a2078ce66d3abde55c130f0d5da94f" AS build

# copy this repo at current revision
COPY . /root/nfcore-tools/

# Explicitly reinstall python 3.13 via conda
# install local nf-core tools version, and precommit hooks
RUN cd /root/nfcore-tools/ && \
conda install -y python=3.13 && \
pip install --no-cache-dir --upgrade pip setuptools wheel pre-commit && \
pip install -r requirements.txt --no-cache-dir -e . && \
pre-commit install --install-hooks && \
rm -rf /root/.cache/pip

# Install nextflow and nf-test via conda and run conda clean
RUN conda install -c bioconda -y nextflow nf-test && \
conda clean -afy

# Install dependencies for apptainer build and apptainer and run apt clean
RUN apt-get update --quiet && \
apt-get install -y curl rpm2cpio cpio && \
curl -s https://raw.githubusercontent.com/apptainer/apptainer/main/tools/install-unprivileged.sh | bash -s - /usr/local/apptainer && \
echo "PATH=/usr/local/apptainer/bin:$PATH" >> $HOME/.bashrc && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Final stage to copy only the required files after installation
FROM "mcr.microsoft.com/devcontainers/base:debian@sha256:ce2e9e611939e611b737362c045bb6d3449bb3efb84898525d724aace1737b90" AS final

# Copy only the conda environment and site-packages from build stage
COPY --from=build /opt/conda /opt/conda
COPY --from=build /root/nfcore-tools/nf_core /root/nfcore-tools/nf_core

# Copy aptainer install from build stage
COPY --from=build /usr/local/apptainer /usr/local/apptainer
COPY --from=build /root/.bashrc /root/.bashrc
40 changes: 40 additions & 0 deletions .devcontainer/build-devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "nfcore-devcontainer-build",

// installs python3.13, nf-core tools from current workspace, nextflow, nf-test,
// and apptainer based on mcr.microsoft.com/devcontainers/miniconda image
"build": {
"dockerfile": "./Dockerfile",
"context": "../.."
},

"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1.6.3": {}
},

"remoteEnv": {
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
},

"remoteUser": "root",
"privileged": true,

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"charliermarsh.ruff",
"ms-python.python",
"ms-python.vscode-pylance",
"nf-core.nf-core-extensionpack"
]
}
}
}
25 changes: 9 additions & 16 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
{
"name": "nfcore",
"image": "nfcore/gitpod:latest",
"postCreateCommand": "python -m pip install --upgrade -r ../requirements-dev.txt -e ../ && pre-commit install --install-hooks",
"remoteUser": "gitpod",
"runArgs": ["--privileged"],
"image": "nfcore/devcontainer:latest",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python"
},
"remoteEnv": {
// Workspace path on the host for mounting with docker-outside-of-docker
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
}
}
"onCreateCommand": "./.devcontainer/setup.sh",

"remoteUser": "root",
"privileged": true
}
13 changes: 13 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# Customise the terminal command prompt
echo "export PROMPT_DIRTRIM=2" >> $HOME/.bashrc
echo "export PS1='\[\e[3;36m\]\w ->\[\e[0m\\] '" >> $HOME/.bashrc
export PROMPT_DIRTRIM=2
export PS1='\[\e[3;36m\]\w ->\[\e[0m\\] '

# Update Nextflow
nextflow self-update

# Update welcome message
echo "Welcome to the nf-core devcontainer!" > /usr/local/etc/vscode-dev-containers/first-run-notice.txt
45 changes: 34 additions & 11 deletions .github/workflows/push_dockerhub_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,45 @@ jobs:
# Only run for the nf-core repo, for releases and merged PRs
if: ${{ github.repository == 'nf-core/tools' }}
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
TARGET_PLATFORM: "linux/amd64,linux/arm64"
strategy:
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5

- name: Build nfcore/tools:dev docker image
run: docker build --no-cache . -t nfcore/tools:dev
- name: Set up QEMU for multi-architecture build
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3

- name: Build nfcore/gitpod:dev docker image
run: docker build --no-cache . --file nf_core/gitpod/gitpod.Dockerfile -t nfcore/gitpod:dev
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3

- name: Push Docker images to DockerHub (dev)
run: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push nfcore/tools:dev
docker push nfcore/gitpod:dev
- name: Log in to Docker Hub
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}

# Retry building tools image once after a delay because of
# irregularly occuring 403 http errors when installing nf-test
- name: Build nfcore/tools image (dev)
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
with:
timeout_minutes: 20
max_attempts: 2
retry_wait_seconds: 60
command: |
docker buildx build \
--platform ${{ env.TARGET_PLATFORM }} \
-t nfcore/tools:dev \
--push --no-cache .

- name: Build and push nfcore/devcontainer:dev image (dev)
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3
with:
configFile: .devcontainer/build-devcontainer/devcontainer.json
imageName: nfcore/devcontainer
imageTag: dev
platform: ${{ env.TARGET_PLATFORM }}
push: always
noCache: true
43 changes: 28 additions & 15 deletions .github/workflows/push_dockerhub_release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nf-core Docker push (release)
# This builds the docker image and pushes it to DockerHub
# Runs on nf-core repo releases and push event to 'dev' branch (PR merges)
# Runs on nf-core repo releases
on:
release:
types: [published]
Expand All @@ -17,26 +17,39 @@ jobs:
# Only run for the nf-core repo, for releases and merged PRs
if: ${{ github.repository == 'nf-core/tools' }}
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }}
TARGET_PLATFORM: "linux/amd64,linux/arm64"
strategy:
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5

- name: Build nfcore/tools:latest docker image
run: docker build --no-cache . -t nfcore/tools:latest
- name: Set up QEMU for multi-architecture build
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3

- name: Build nfcore/gitpod:latest docker image
run: docker build --no-cache . --file nf_core/gitpod/gitpod.Dockerfile -t nfcore/gitpod:latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3

- name: Push Docker images to DockerHub (release)
- name: Log in to Docker Hub
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Build and push nfcore/tools docker image (latest)
run: |
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push nfcore/tools:latest
docker tag nfcore/tools:latest nfcore/tools:${{ github.event.release.tag_name }}
docker push nfcore/tools:${{ github.event.release.tag_name }}
docker push nfcore/gitpod:latest
docker tag nfcore/gitpod:latest nfcore/gitpod:${{ github.event.release.tag_name }}
docker push nfcore/gitpod:${{ github.event.release.tag_name }}
docker buildx build \
--platform ${{ env.TARGET_PLATFORM }} \
-t nfcore/tools:${{ github.event.release.tag_name }} \
-t nfcore/tools:latest \
--push --no-cache .

- name: Build nfcore/devcontainer:latest devcontainer image
uses: devcontainers/ci@8bf61b26e9c3a98f69cb6ce2f88d24ff59b785c6 # v0.3
with:
configFile: .devcontainer/build-devcontainer/devcontainer.json
imageName: nfcore/devcontainer
imageTag: ${{ github.event.release.tag_name }},latest
platform: ${{ env.TARGET_PLATFORM }}
push: always
noCache: true
12 changes: 0 additions & 12 deletions .gitpod.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

- don't read param expressions with spaces as params ([#3674](https://github.com/nf-core/tools/pull/3674))
- Update marocchino/sticky-pull-request-comment digest to 7737449 ([#3681](https://github.com/nf-core/tools/pull/3681))
- Stop using Gitpod in favor of devcontainer for codespaces ([#3569](https://github.com/nf-core/tools/pull/3569))
- Update dependency textual to v5 ([#3699](https://github.com/nf-core/tools/pull/3699))
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.12.7 ([#3697](https://github.com/nf-core/tools/pull/3697))
- Update pre-commit hook pre-commit/mirrors-mypy to v1.17.1 ([#3698](https://github.com/nf-core/tools/pull/3698))
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN curl -s https://get.nextflow.io | bash \
&& mv nextflow /usr/local/bin \
&& chmod a+rx /usr/local/bin/nextflow
# Install nf-test
RUN curl -fsSL https://code.askimed.com/install/nf-test | bash \
RUN curl -fsSL https://get.nf-test.com | bash \
&& mv nf-test /usr/local/bin \
&& chmod a+rx /usr/local/bin/nf-test

Expand Down
66 changes: 0 additions & 66 deletions nf_core/gitpod/gitpod.Dockerfile

This file was deleted.

21 changes: 6 additions & 15 deletions nf_core/pipeline-template/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"name": "nfcore",
"image": "nfcore/gitpod:latest",
"remoteUser": "gitpod",
"runArgs": ["--privileged"],
"image": "nfcore/devcontainer:latest",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python"
},
"remoteUser": "root",
"privileged": true,

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
}
}
// Mount full current path to make mounting into docker-outside-of-docker work
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",
"workspaceFolder": "${localWorkspaceFolder}"
}
4 changes: 4 additions & 0 deletions nf_core/pipeline-template/.devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

# Update welcome message
echo "Welcome to the {{ name }} devcontainer!" > /usr/local/etc/vscode-dev-containers/first-run-notice.txt
10 changes: 0 additions & 10 deletions nf_core/pipeline-template/.gitpod.yml

This file was deleted.

Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载