Skip to content

Commit

Permalink
DEV: use micromamba to set up Codespaces
Browse files Browse the repository at this point in the history
This is faster, and allows using 2-core instances instead of
requiring a minimum of 8 GB / 4 cores.

[skip ci]
  • Loading branch information
rgommers committed Mar 17, 2023
1 parent 28bce82 commit 084ef49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
// Conda requires lots of memory to resolve our environment
"hostRequirements": {
"memory": "8gb"
},

// More info about Features: https://containers.dev/features
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {},
Expand Down
7 changes: 6 additions & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

set -e

curl micro.mamba.pm/install.sh | bash

conda init --all
conda env create -f environment.yml
micromamba shell init -s bash
micromamba env create -f environment.yml --yes
# Note that `micromamba activate numpy-dev` doesn't work, it must be run by the
# user (same applies to `conda activate`)

git submodule update --init

0 comments on commit 084ef49

Please sign in to comment.