diff --git a/src/jupyter-scipy/.devcontainer.json b/src/jupyter-scipy/.devcontainer.json new file mode 100644 index 00000000..2efa58a2 --- /dev/null +++ b/src/jupyter-scipy/.devcontainer.json @@ -0,0 +1,54 @@ +{ + "name": "JupyterLab with GATK 4.2.6.1-corretto-11", + "dockerComposeFile": "docker-compose.yaml", + "service": "app", + "shutdownAction": "none", + "workspaceFolder": "/workspace", + "postCreateCommand": [ + "./startupscript/post-startup.sh", + "jupyter", + "/home/jupyter", + "${templateOption:cloud}", + "${templateOption:login}" + ], + // re-mount bucket files on container start up + "postStartCommand": [ + "./startupscript/remount-on-restart.sh", + "jupyter", + "/home/jupyter", + "${templateOption:cloud}", + "${templateOption:login}" + ], + "remoteUser": "root", + "customizations": { + "workbench": { + "opens": { + "extensions": [ + // Source + ".ipynb", + ".R", + ".py", + // Documents + ".md", + ".html", + ".latex", + ".pdf", + // Images + ".bmp", + ".gif", + ".jpeg", + ".jpg", + ".png", + ".svg", + // Data + ".csv", + ".tsv", + ".json", + ".vl" + ], + "fileUrlSuffix": "/lab/tree/{path}", + "folderUrlSuffix": "/lab/tree/{path}" + } + } + } + } \ No newline at end of file diff --git a/src/jupyter-scipy/devcontainer-template.json b/src/jupyter-scipy/devcontainer-template.json new file mode 100644 index 00000000..783b0fe4 --- /dev/null +++ b/src/jupyter-scipy/devcontainer-template.json @@ -0,0 +1,33 @@ +{ + "id": "jupyter-gatk-template", + "description": "A template used to serve the Workbench JupyterLab container image with GATK installed", + "version": "0.0.1", + "name": "Workbench JupyterLab GATK template", + "documentationURL": "https://github.com/verily-src/workbench-app-devcontainers/tree/master/src/jupyter-gatk-aws", + "licenseURL": "https://github.com/verily-src/workbench-app-devcontainers/blob/master/LICENSE", + "options": { + "cloud": { + "type": "string", + "description": "VM cloud environment", + "proposals": ["gcp", "aws"], + "default": "gcp" + }, + "login": { + "type": "string", + "description": "Whether to log in to workbench CLI", + "proposals": ["true", "false"], + "default": "false" + }, + "containerImage": { + "type": "string", + "description": "The container image to use", + "default": "public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/jupyter-scipy:v1.5.0" + }, + "containerPort": { + "type": "number", + "description": "The port to expose the container on", + "default": 8888 + } + }, + "platforms": ["Any"] + } \ No newline at end of file diff --git a/src/jupyter-scipy/docker-compose.yaml b/src/jupyter-scipy/docker-compose.yaml new file mode 100644 index 00000000..6da28371 --- /dev/null +++ b/src/jupyter-scipy/docker-compose.yaml @@ -0,0 +1,22 @@ +version: "2.4" +services: + app: + container_name: "application-server" + image: "public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/jupyter-scipy:v1.5.0" + user: "jupyter" + restart: always + volumes: + - .:/workspace:cached + ports: + - "8888:8888" + networks: + - app-network + cap_add: + - SYS_ADMIN + devices: + - /dev/fuse + security_opt: + - apparmor:unconfined +networks: + app-network: + external: true \ No newline at end of file