Skip to content

Commit

Permalink
Update devcontainer image (#2392)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Dec 5, 2023
1 parent be08406 commit c0c7adf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 42 deletions.
49 changes: 8 additions & 41 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Sage Dev Container",
"image": "ghcr.io/sage-bionetworks/sage-devcontainer:0d98658",
"image": "ghcr.io/sage-bionetworks/sage-devcontainer:be08406",

"containerEnv": {
"NX_BASE": "${localEnv:NX_BASE}",
Expand All @@ -24,9 +24,7 @@

"customizations": {
"codespaces": {
"openFiles": [
"README.md"
]
"openFiles": ["README.md"]
},
"vscode": {
"extensions": [
Expand All @@ -36,7 +34,6 @@
"eamodio.gitlens",
"emeraldwalk.RunOnSave",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"formulahendry.auto-rename-tag",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
Expand All @@ -53,6 +50,7 @@
"mtxr.sqltools",
"njpwerner.autodocstring",
"nrwl.angular-console",
"Orta.vscode-jest",
"pranaygp.vscode-css-peek",
"ritwickdey.LiveServer",
"shengchen.vscode-checkstyle",
Expand All @@ -70,40 +68,9 @@
},

"forwardPorts": [
3000,
3306,
4200,
4211,
5017,
5200,
5432,
5601,
7010,
7080,
7200,
7888,
8010,
8071,
8000,
8080,
8081,
8082,
8083,
8084,
8085,
8086,
8090,
8091,
8092,
8200,
8787,
8888,
8889,
9090,
9104,
9200,
9411,
27017
3000, 3306, 4200, 4211, 5017, 5200, 5432, 5601, 7010, 7080, 7200, 7888, 8010, 8071, 8000, 8080,
8081, 8082, 8083, 8084, 8085, 8086, 8090, 8091, 8092, 8200, 8787, 8888, 8889, 9090, 9104, 9200,
9411, 27017
],

"portsAttributes": {
Expand Down Expand Up @@ -249,7 +216,7 @@
}
},

"remoteUser": "vscode",
"remoteUser": "vscode",
"shutdownAction": "stopContainer",
"runArgs": ["--name", "sage_devcontainer"]
}
}
2 changes: 1 addition & 1 deletion dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function workspace-nx-cloud-help {
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }

function check-vscode-version {
expected="1.81.1"
expected="1.84.2"
actual="$(code --version | head -n 1)"
if [ $(version $actual) -lt $(version $expected) ]; then
echo "📦 Please update VS Code (${actual}) to version ${expected} or above."
Expand Down

0 comments on commit c0c7adf

Please sign in to comment.