Skip to content

Commit

Permalink
- moved all installations from codespace config to Dockerfile to allo…
Browse files Browse the repository at this point in the history
…w for better biuld caching
  • Loading branch information
amkrajewski committed Jan 29, 2024
1 parent 589fb40 commit 62af3a2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"image": "mcr.microsoft.com/devcontainers/miniconda",
"customizations": {
"codespaces": {
"openFiles": [
"examples/quickstart.ipynb",
"README.md"
]
},
"vscode": {
"extensions": [
"nimsaem.nimvscode",
"ms-python.python",
"ms-toolsai.jupyter"
]
}
"dockerfile": "Dockerfile",
"customizations": {
"codespaces": {
"openFiles": [
"examples/quickstart.ipynb",
"README.md"
]
},
"hostRequirements": {
"cpus": 4,
"memory": "16gb",
"storage": "16gb"
},
"onCreateCommand": "conda install -y -c conda-forge nim && conda install -y python=3.11 liblapack jupyter numpy pandas plotly && nimble install -y arraymancer nimpy && pip install pqam-rmsadtandoc2023 && nim c --d:release --out:examples/nimplex nimplex && nim c --d:release --threads:on --app:lib --out:examples/nimplex.so nimplex && nim c --d:release --threads:on --app:lib --out:examples/utils/plotting.so utils/plotting"
"vscode": {
"extensions": [
"nimsaem.nimvscode",
"ms-python.python",
"ms-toolsai.jupyter"
]
}
},
"hostRequirements": {
"cpus": 4,
"memory": "16gb",
"storage": "16gb"
},
"onCreateCommand": "nim c --d:release --out:examples/nimplex nimplex && nim c --d:release --threads:on --app:lib --out:examples/nimplex.so nimplex && nim c --d:release --threads:on --app:lib --out:examples/utils/plotting.so utils/plotting"
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## My NIM gitignore
*
!LICENSE
!Dockerfile
!**/
!*.*
**/*.npy
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mcr.microsoft.com/devcontainers/miniconda

RUN conda install -y -c conda-forge nim && \
conda install -y python=3.11 liblapack jupyter numpy pandas plotly && \
nimble install -y arraymancer nimpy && \
pip install pqam-rmsadtandoc2023

0 comments on commit 62af3a2

Please sign in to comment.