Skip to content

Commit

Permalink
Added descriptions to devcontainer files
Browse files Browse the repository at this point in the history
  • Loading branch information
apca committed Oct 14, 2024
1 parent 4cefc1d commit 92e34ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Use an official Ubuntu as a parent image
# Use Ubuntu as a parent image
FROM ubuntu:20.04

# Install Java 11 (required for Nextflow)
Expand All @@ -17,5 +17,5 @@ RUN apt-get update && apt-get install -y \
# Set JAVA_HOME environment variable
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64

# Expose Docker socket
# Expose the Docker socket
RUN groupadd docker && usermod -aG docker $USER
7 changes: 4 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "Nextflow Development Environment",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", // Base Ubuntu container image
"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
],
"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/",
// Updated packages, installed java 11, nextflow, changed permissions for nextflow to make it executable and moved it to /usr/local/bin
"customizations": {
"vscode": {
"vscode": { // Added VSCode as my Editor
"extensions": [
"ms-azuretools.vscode-docker" // Docker extension for VS Code
]
Expand Down

0 comments on commit 92e34ab

Please sign in to comment.