-
Notifications
You must be signed in to change notification settings - Fork 212
Devcontainers cleanup #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a82b0fb
Remove mention of completely
ewels 322eb0f
Consolidate Dockerfiles
ewels 5b7d253
Change base image, remove some stuff I hope isn't needed
ewels d485cef
Clean up devcontainer, move to Dockerfile
ewels 76b756e
Fix syntax error in Dockerfile
ewels 363d9e2
Merge branch 'master' into devcontainers-cleanup
ewels 1b8be5c
Remove devcontainer 'remoteUser' 'gitpod'
ewels 394bfc1
Inline comments to explain devcontainer config
ewels c91b490
Merge branch 'master' into devcontainers-cleanup
pinin4fjords 6bbfe27
Fix postCreateCommand if statement
ewels d3d3713
Add workflow_dispatch to docker GHA workflow
ewels f58886b
Change GHA logic for testing on forks
ewels 9d7b067
Simplify GHA docker action
ewels 1708f15
Fix env access
ewels 8b98f17
Add permissions to push to registry
ewels 0754ab6
Use github actions cache
ewels c159028
Set up buildx
ewels 1a8042a
Update Nextflow to 24.10.4
ewels 101cae0
Testing: Use pre-built image
ewels 918fa6b
I take it back, it was the right way around already
ewels f3b73e0
Set user to root to fix permissions error with conda
ewels 502e54b
Try removing common-utils to make codespaces boot faster
ewels b6df003
Run nextflow -version in postCreateCommand for devcontainer
ewels 4ff37d3
Add back the nextflow org docker image
ewels 264a925
Merge branch 'master' into devcontainers-cleanup
ewels 0a6b45f
Merge branch 'master' into devcontainers-cleanup
pinin4fjords File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,69 @@ | ||
FROM ghcr.io/nextflow-io/training:latest | ||
FROM mcr.microsoft.com/devcontainers/universal:linux | ||
|
||
ENV NXF_VER=24.10.0 | ||
# Install util tools. | ||
# software-properties-common is needed to add ppa support for Apptainer installation | ||
RUN apt-get update --quiet && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get install --quiet --yes \ | ||
apt-transport-https \ | ||
apt-utils \ | ||
sudo \ | ||
git \ | ||
less \ | ||
wget \ | ||
curl \ | ||
tree \ | ||
graphviz \ | ||
software-properties-common && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Apptainer (Singularity) | ||
RUN add-apt-repository -y ppa:apptainer/ppa && \ | ||
apt-get update --quiet && \ | ||
apt install -y apptainer && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Seqera Platform "Tower Agent" | ||
RUN curl -fSL https://github.com/seqeralabs/tower-agent/releases/latest/download/tw-agent-linux-x86_64 > tw-agent && \ | ||
chmod +x tw-agent && \ | ||
mv tw-agent /usr/local/bin/tw-agent | ||
|
||
# Set up directories | ||
RUN mkdir -p /workspaces/.nextflow && \ | ||
mkdir -p /workspaces/training/ | ||
|
||
# Uncomment if we need to pin the Nextflow version | ||
ENV NXF_EDGE=0 | ||
ENV NXF_VER=24.10.0 | ||
ENV NXF_HOME=/workspaces/.nextflow | ||
|
||
# Install nextflow, nf-core, Mamba, and pytest-workflow | ||
RUN conda config --remove channels defaults && \ | ||
conda config --add channels bioconda && \ | ||
conda config --add channels conda-forge && \ | ||
conda config --set channel_priority strict && \ | ||
conda update --quiet --yes --all && \ | ||
conda install --quiet --yes --name base \ | ||
mamba \ | ||
nextflow \ | ||
nf-core \ | ||
nf-test \ | ||
black \ | ||
prettier \ | ||
pre-commit \ | ||
linkify-it-py \ | ||
pytest-workflow && \ | ||
conda clean --all --force-pkgs-dirs --yes | ||
|
||
# Cleanup | ||
RUN printf 'unset JAVA_TOOL_OPTIONS\n' >> $HOME/.bashrc | ||
|
||
# Update Nextflow | ||
RUN nextflow self-update && nextflow -version | ||
|
||
RUN unset JAVA_TOOL_OPTIONS | ||
|
||
# RUN export PS1='\t -> ' | ||
RUN export PS1='\[\e[3;36m\]${PWD/*//} ->\[\e[0m\] ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.