Skip to content

Commit d2728f2

Browse files
committed
Up
1 parent 2ef9fd7 commit d2728f2

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu
2+
3+
USER vscode
4+
ENV HOME=/home/vscode
5+
SHELL [ "/bin/bash", "-c" ]
6+
RUN <<'SCRIPT'
7+
set -eux
8+
JB_DIR="$HOME/.local/share/JetBrains"
9+
PLUGINS_DIR="$JB_DIR/plugins"
10+
11+
plugins=(
12+
"https://plugins.jetbrains.com/plugin/download?rel=true&updateId=780441" # Copied from https://plugins.jetbrains.com/plugin/7808-terraform-and-hcl/versions/stable -> 2025.1.3
13+
"https://plugins.jetbrains.com/plugin/download?rel=true&updateId=780445" # Copied from https://plugins.jetbrains.com/plugin/6351-dart/versions/stable -> 2025.1.3
14+
)
15+
ides=(
16+
"IntelliJIdea2025.1"
17+
"WebStorm2025.1"
18+
)
19+
20+
mkdir -p "$PLUGINS_DIR" && cd "$PLUGINS_DIR"
21+
for plugin in "${plugins[@]}"; do {
22+
curl -L "$plugin" -o /tmp/download
23+
unzip /tmp/download
24+
} done
25+
26+
for ide in "${ides[@]}"; do {
27+
mkdir -p "$JB_DIR/$ide"
28+
ln -sf "$PLUGINS_DIR/"* "$JB_DIR/$ide/"
29+
} done
30+
SCRIPT

.devcontainer/devcontainer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"name": "Ubuntu Dev Container",
3-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": "."
6+
},
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
9+
},
410
"remoteUser": "vscode",
511
}

0 commit comments

Comments
 (0)