-
Notifications
You must be signed in to change notification settings - Fork 206
Add Gitpod environment to nf-core tools #1384
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 all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ac26372
Add Gitpod Dockerfile
mahesh-panchal 0eee684
Add Gitpod yaml
mahesh-panchal 585af68
Rename Dockerfile
mahesh-panchal ae1693d
Add gitpod to pipeline template
mahesh-panchal e487f41
Add GH action to build Gitpod
mahesh-panchal 7407f0d
Restore Dockerfile for testing purposes
mahesh-panchal 932c199
Fix GH action
mahesh-panchal 2c6476f
Update nf_core/pipeline-template/.gitpod.yml
mahesh-panchal a7d33d9
Update .gitpod.yml
mahesh-panchal 1f918f9
Add extension pack explanations
mahesh-panchal e60533a
Update base Gitpod yaml.
mahesh-panchal 9227e86
Update .github/workflows/build_gitpod.yml
mahesh-panchal 4de4730
Add conda update to Dockerfile
mahesh-panchal 2d60149
Add file to build
mahesh-panchal b2230a7
Change SHA commit to major versions
mahesh-panchal fa9cb24
Fix image name
mahesh-panchal 12665d0
fix typo in .gitpod.yml
mashehu 9d915be
Add Build path for nf-core tools dev
mahesh-panchal 2d01159
Add GA action to workflow check
mahesh-panchal f14c2f8
Apply suggestions from code review
mahesh-panchal bc04c64
Add conda channel defaults
mahesh-panchal 70fc9c4
Add pip to conda environment
mahesh-panchal 9e51064
Update pip install command
mahesh-panchal 1d1f5e8
Update changelog
mahesh-panchal 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: nf-core gitpod build and push | ||
# Builds the docker image for gitpod and pushes it to DockerHub | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths: | ||
- 'nf_core/gitpod/gitpod.Dockerfile' | ||
- '.github/workflows/build_gitpod.yml' | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
# Only run for the nf-core repo, for releases and merged PRs | ||
if: ${{ github.repository == 'nf-core/tools' }} | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: nfcore/gitpod | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=raw,value=latest | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: nf_core/gitpod/gitpod.Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
image: nfcore/gitpod:latest | ||
tasks: | ||
- name: install current state of nf-core/tools | ||
command: | | ||
python -m pip install --upgrade -r requirements-dev.txt -e . | ||
vscode: | ||
extensions: # based on nf-core.nf-core-extensionpack | ||
- codezombiech.gitignore # Language support for .gitignore files | ||
# - cssho.vscode-svgviewer # SVG viewer | ||
- davidanson.vscode-markdownlint # Markdown/CommonMark linting and style checking for Visual Studio Code | ||
- eamodio.gitlens # Quickly glimpse into whom, why, and when a line or code block was changed | ||
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files | ||
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar | ||
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors | ||
# - nextflow.nextflow # Nextflow syntax highlighting | ||
- oderwat.indent-rainbow # Highlight indentation level | ||
- streetsidesoftware.code-spell-checker # Spelling checker for source code |
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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM gitpod/workspace-full | ||
|
||
USER root | ||
|
||
# Install Conda | ||
RUN wget 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 | ||
|
||
ENV PATH="/opt/conda/bin:$PATH" | ||
|
||
RUN chown -R gitpod:gitpod /opt/conda | ||
|
||
USER gitpod | ||
|
||
# Install nextflow, nf-core, Mamba, and pytest-workflow | ||
RUN conda update -n base -c defaults conda && \ | ||
conda install nextflow nf-core pytest-workflow mamba pip -n base -c conda-forge -c bioconda && \ | ||
nextflow self-update && \ | ||
conda config --add channels defaults && \ | ||
conda config --add channels bioconda && \ | ||
conda config --add channels conda-forge && \ | ||
conda clean --all -f -y |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
image: nfcore/gitpod:latest | ||
|
||
vscode: | ||
extensions: # based on nf-core.nf-core-extensionpack | ||
- codezombiech.gitignore # Language support for .gitignore files | ||
# - cssho.vscode-svgviewer # SVG viewer | ||
- davidanson.vscode-markdownlint # Markdown/CommonMark linting and style checking for Visual Studio Code | ||
- eamodio.gitlens # Quickly glimpse into whom, why, and when a line or code block was changed | ||
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files | ||
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar | ||
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors | ||
# - nextflow.nextflow # Nextflow syntax highlighting | ||
- oderwat.indent-rainbow # Highlight indentation level | ||
- streetsidesoftware.code-spell-checker # Spelling checker for source code |
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.