-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move the dev images into draft_images * create all the devcontainer files
- Loading branch information
Showing
48 changed files
with
319 additions
and
165 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
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": "aomlomics-jh", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/aomlomics-jh:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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": "arcgis", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/arcgis:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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": "cmip6-cookbook", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/cmip6-cookbook:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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": "coastwatch", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/coastwatch:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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,26 @@ | ||
#!/bin/bash | ||
|
||
# Construct the message | ||
message="{ | ||
\"name\": \"$1\", | ||
\"workspaceFolder\": \"/home/jovyan\", | ||
\"image\": \"ghcr.io/nmfs-opensci/container-images/$1:latest\", | ||
// Ports to be forwarded from the container to the host | ||
\"forwardPorts\": [8889], | ||
\"portsAttributes\": { | ||
\"8889\": { | ||
\"label\": \"Jupyter Lab\", | ||
\"onAutoForward\": \"notify\" | ||
} | ||
}, | ||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
\"postCreateCommand\": \"echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://'${CODESPACE_NAME}'-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd $PWD >> ~/.bash_login\", | ||
// Start Jupyter Lab | ||
\"postStartCommand\": \"jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''\", | ||
}" | ||
|
||
echo "$message" > ./.devcontainer/$1/devcontainer.json |
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,15 @@ | ||
#!/bin/bash | ||
|
||
# cd .devcontainer/codespace | ||
# chmod +x ./make_devcontainers.sh | ||
# ./.devcontainer/codespace/make_devcontainers.sh | ||
a=$(Rscript -e 'cat(here::here())') | ||
cd $a | ||
chmod +x ./.devcontainer/codespace/devcontainer_template.sh | ||
fils="$(ls ./images)" | ||
for i in $fils | ||
do | ||
echo $i | ||
mkdir ../$i | ||
./.devcontainer/codespace/devcontainer_template.sh $i | ||
done |
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": "vast", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/vast:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images/.devcontainer/codespace >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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,8 @@ | ||
#!/bin/bash | ||
|
||
# Construct the message | ||
message="{ | ||
\"name\": $1, | ||
\"workspaceFolder\": \"/home/jovyan\", | ||
\"image\": \"ghcr.io/nmfs-opensci/container-images/\"$1\":latest\", | ||
" |
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": "echopype", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/echopype:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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": "jupyter-base-notebook", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/jupyter-base-notebook:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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": "py-geospatial", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/py-geospatial:latest", | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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 |
---|---|---|
@@ -1,47 +1,21 @@ | ||
{ | ||
// Name of the Dev Container | ||
"name": "Py-Rocket Base Codespace", | ||
|
||
// Path to the Docker file | ||
"name": "py-rocket-base", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/py-rocket-base:latest", | ||
|
||
// Mount a folder with the post_start.sh script to /home/jovyan/codespace | ||
// Don't use /home/jovyan as that would wipe out files there | ||
// We need post_start.sh in our container | ||
"workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/codespace,target=/home/jovyan/codespace,type=bind,consistency=delegated", | ||
|
||
// Default workspace folder within the container | ||
"workspaceFolder": "/home/jovyan/codespace", | ||
|
||
// Required for Jupyter Lab | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-toolsai.jupyter", | ||
"ms-python.python", | ||
] | ||
}, | ||
}, | ||
|
||
// Settings for the VS Code | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
}, | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
|
||
// Attributes for the forwarded ports | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "openBrowser" | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Command to run after the container starts. Runs script to add a link to the Jupyter Lab | ||
"postStartCommand": "chmod +x /home/jovyan/codespace/post_start.sh && /home/jovyan/codespace/post_start.sh && rm /home/jovyan/codespace/post_start.sh && jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --NotebookApp.token='' --NotebookApp.password=''", | ||
|
||
// List of extensions to be installed | ||
"extensions": [] | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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 |
---|---|---|
@@ -1,44 +1,21 @@ | ||
{ | ||
// Name of the Dev Container | ||
"name": "Py-Rocket Geospatial Codespace", | ||
|
||
// Path to the Docker file | ||
"name": "py-rocket-geospatial", | ||
"workspaceFolder": "/home/jovyan", | ||
"image": "ghcr.io/nmfs-opensci/container-images/py-rocket-geospatial:latest", | ||
|
||
"workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/codespace,target=/home/jovyan/codespace,type=bind,consistency=delegated", | ||
|
||
// Default workspace folder within the container | ||
"workspaceFolder": "/home/jovyan/codespace", | ||
|
||
// Required for Jupyter Lab | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-toolsai.jupyter", | ||
"ms-python.python", | ||
] | ||
} | ||
}, | ||
|
||
// Settings for the integrated terminal | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
|
||
// Ports to be forwarded from the container to the host | ||
"forwardPorts": [8889], | ||
|
||
// Attributes for the forwarded ports | ||
"portsAttributes": { | ||
"8889": { | ||
"label": "Jupyter Lab", | ||
"onAutoForward": "openPreview" | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
|
||
// Command to run after the container starts. Runs script to add a link to the RStudio | ||
"postStartCommand": "chmod +x /home/jovyan/codespace/post_start.sh && /home/jovyan/codespace/post_start.sh && rm /home/jovyan/codespace/post_start.sh", | ||
|
||
// List of extensions to be installed | ||
"extensions": [] | ||
|
||
// Create a README that is automatically opened in preview mode | ||
// the echo bit is to fix pwd in bash terminal in RStudio | ||
"postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://''-8889.app.github.dev)' > README.md && echo PWD=/home/jovyan\ncd /Users/eli.holmes/Documents/GitHub/container-images >> ~/.bash_login", | ||
|
||
// Start Jupyter Lab | ||
"postStartCommand": "jupyter lab --ip=0.0.0.0 --port=8889 --allow-root --no-browser --notebook-dir=/home/jovyan --NotebookApp.token='' --NotebookApp.password=''", | ||
} |
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
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,10 @@ | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": [ "README.md" ], | ||
}, | ||
"vscode": { | ||
"settings": { | ||
"workbench.editorAssociations": { "*.md": "vscode.markdown.preview.editor", }, | ||
}, | ||
} | ||
}, |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.