Skip to content

Commit a3d0467

Browse files
authored
Added dev. container (#98)
1 parent e538e01 commit a3d0467

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/base:debian",
3+
"features": {
4+
"ghcr.io/julialang/devcontainer-features/julia:1": {
5+
"channel": "lts"
6+
}
7+
},
8+
"postCreateCommand": ".devcontainer/postCreate.sh"
9+
}

.devcontainer/postCreate.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
set -e -o pipefail -u -x
4+
5+
additional_archs=()
6+
if [[ $(uname -m) == x86_64 ]]; then
7+
additional_archs+=(i386)
8+
fi
9+
10+
for arch in "${additional_archs[@]}"; do
11+
sudo dpkg --add-architecture "$arch"
12+
done
13+
14+
sudo apt-get update
15+
16+
for arch in "${additional_archs[@]}"; do
17+
sudo apt-get --yes install --no-install-recommends libc6:$arch
18+
done

0 commit comments

Comments
 (0)