Skip to content

Commit 4f8be37

Browse files
committed
Modernize the container configuration
1 parent acca679 commit 4f8be37

File tree

3 files changed

+14
-86
lines changed

3 files changed

+14
-86
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

.devcontainer/base.Dockerfile

Lines changed: 0 additions & 43 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,25 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.205.2/containers/ruby
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ruby
33
{
4-
"name": "Ruby",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// Update 'VARIANT' to pick a Ruby version: 3, 3.0, 2, 2.7, 2.6
9-
// Append -bullseye or -buster to pin to an OS version.
10-
// Use -bullseye variants on local on arm64/Apple Silicon.
11-
"VARIANT": "3-bullseye",
12-
// Options
13-
"NODE_VERSION": "lts/*"
14-
}
15-
},
16-
17-
// Set *default* container specific settings.json values on container create.
18-
"settings": {},
4+
"name": "spring",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "ghcr.io/rails/devcontainer/images/ruby:3.4.4",
7+
"features": {
8+
"ghcr.io/devcontainers/features/github-cli:1": {}
9+
}
1910

20-
// Add the IDs of extensions you want installed when the container is created.
21-
"extensions": [
22-
"rebornix.Ruby"
23-
],
11+
// Features to add to the dev container. More info: https://containers.dev/features.
12+
// "features": {},
2413

2514
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2615
// "forwardPorts": [],
2716

2817
// Use 'postCreateCommand' to run commands after the container is created.
2918
// "postCreateCommand": "ruby --version",
3019

31-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
32-
"remoteUser": "vscode",
33-
"features": {
34-
"github-cli": "latest"
35-
}
20+
// Configure tool-specific properties.
21+
// "customizations": {},
3622

23+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
24+
// "remoteUser": "root"
3725
}

0 commit comments

Comments
 (0)