Skip to content

Commit

Permalink
Fix Docker setup in Codespace
Browse files Browse the repository at this point in the history
  • Loading branch information
apca committed Nov 15, 2024
1 parent a9daeaf commit 4d8c167
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "Nextflow Development Environment",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", // Added Base Ubuntu container image as OS
"runArgs": [
"--volume=/var/run/docker.sock:/var/run/docker.sock" // Mount the Docker socket from host machine
"--volume=/var/run/docker.sock:/var/run/docker.sock" // Mounted the Docker socket from host machine
],
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y openjdk-11-jdk curl && curl -s https://get.nextflow.io | bash && chmod +x nextflow && sudo mv nextflow /usr/local/bin/",
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y openjdk-11-jdk curl && curl -s https://get.nextflow.io | bash && chmod +x nextflow && sudo mv nextflow /usr/local/bin/ && sudo apt-get install -y docker.io && sudo usermod -aG docker $USER",
// Updated packages, installed java 11, nextflow, changed permissions for nextflow to make it executable and moved it to /usr/local/bin
// Also installed Docker and added the Codespace user to the Docker group, enabling the user to run Docker commands without needing sudo
"customizations": {
"vscode": { // Added VSCode as my Editor
"extensions": [
Expand Down

0 comments on commit 4d8c167

Please sign in to comment.