diff --git a/.devcontainer/test/devcontainer.json b/.devcontainer/test/devcontainer.json index 509cf0a..01bbbe3 100644 --- a/.devcontainer/test/devcontainer.json +++ b/.devcontainer/test/devcontainer.json @@ -2,10 +2,7 @@ "name": "test", "workspaceFolder": "/home/jovyan", "image": "ghcr.io/nmfs-opensci/container-images/py-rocket-base:latest", - "hostRequirements": { - "cpus": "2" - }, - + // Ports to be forwarded from the container to the host "forwardPorts": [8889], "portsAttributes": { @@ -16,7 +13,7 @@ }, // Create a README that is automatically opened in preview mode - "postCreateCommand": "echo '[![](https://img.shields.io/badge/Open%20Jupyter%20Lab-37a779?style=for-the-badge)](https://'${CODESPACE_NAME}'-8889.app.github.dev)' > README.md", + "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=''",