Skip to content

Commit d28d206

Browse files
Merge pull request #1 from adopt-opt/lp/devcontainer
Add devcontainer setup
2 parents 18cea6b + 9818fa2 commit d28d206

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.devcontainer/devcontainer.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// More info about Features: https://containers.dev/features
3+
"image": "mcr.microsoft.com/devcontainers/universal:2",
4+
"features": {},
5+
6+
"onCreateCommand": ".devcontainer/setup.sh",
7+
"postCreateCommand": "",
8+
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"ms-python.python"
13+
],
14+
"settings": {}
15+
}
16+
}
17+
}

.devcontainer/setup.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
curl micro.mamba.pm/install.sh | bash
6+
7+
conda init --all
8+
micromamba shell init -s bash
9+
micromamba env create -f environment.yml --yes
10+
# Note that `micromamba activate jaxfluids-env` doesn't work, it must be run by the
11+
# user (same applies to `conda activate`)

0 commit comments

Comments
 (0)