File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments