Skip to content

Commit

Permalink
Add devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Oct 26, 2024
1 parent 9ffb2e7 commit 958fb4f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Julia Tutorial at Supercomputing 24",
"image": "ghcr.io/juliaparallel/julia-hpc-tutorial-sc24:main",

"customizations": {
"vscode": {
"extensions": [
"julialang.language-julia",
"ms-toolsai.jupyter",
]
}
},

"containerEnv": {
// Automatically use all threads available.
"JULIA_NUM_THREADS": "auto",
},

// Forward Jupyter port
"forwardPorts": [8888],
"portsAttributes": {
"8888": {
"label": "Jupyterlab server",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},

// Use 'postAttachCommand' to run commands after the container is started.
// Use tokenless server to be able to easily launch the app in Codespaces.
"postAttachCommand": "julia -e 'import Conda; run(`$(joinpath(Conda.SCRIPTDIR, \"jupyter\")) lab --allow-root --LabApp.token='' --port 8888`)'",

}

0 comments on commit 958fb4f

Please sign in to comment.