generated from enryH/notes_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Nextflow and Docker support for Codespace
- Loading branch information
apca
committed
Oct 11, 2024
1 parent
2ec09ff
commit 03940ed
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,21 @@ | ||
# Use an official Ubuntu as a parent image | ||
FROM ubuntu:20.04 | ||
|
||
# Install Java 11 (required for Nextflow) | ||
RUN apt-get update && apt-get install -y \ | ||
openjdk-11-jdk \ | ||
curl \ | ||
gnupg2 \ | ||
lsb-release \ | ||
software-properties-common | ||
|
||
# Install Docker dependencies (optional, if not using features) | ||
RUN apt-get update && apt-get install -y \ | ||
docker.io \ | ||
docker-compose | ||
|
||
# Set JAVA_HOME environment variable | ||
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 | ||
|
||
# Expose Docker socket | ||
RUN groupadd docker && usermod -aG docker $USER |
This file contains 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,21 @@ | ||
{ | ||
"name": "Nextflow Development Environment", | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", // Base Ubuntu container image | ||
"runArgs": [ | ||
"--cap-add=SYS_ADMIN", // Ensure Docker CLI access | ||
"--security-opt", | ||
"seccomp=unconfined" // Unconfine security for Docker in Codespace | ||
], | ||
"features": { | ||
"docker-in-docker": "true" // Enable Docker within Codespace | ||
}, | ||
"postCreateCommand": "curl -s https://get.nextflow.io | bash && chmod +x nextflow && sudo mv nextflow /usr/local/bin/", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-azuretools.vscode-docker" // Docker extension for VS Code | ||
] | ||
} | ||
} | ||
} | ||
|