Skip to content

Commit 714f2c8

Browse files
ntindleShadowMitia
andauthored
Speed up container start times by pulling prebuilt the image from GitHub (#942)
* feat: pull the image from GHCR to speed up start of the container * code review changes * fix: spelling error and clarification Co-authored-by: Dimitri Belopopsky <[email protected]>
1 parent 25d03e4 commit 714f2c8

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.devcontainer/devcontainer.json

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
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.187.0/containers/ubuntu
1+
// For format details, see https://aka.ms/devcontainer.json.
32
{
4-
"name": "Ubuntu",
5-
"build": {
6-
"dockerfile": "../Dockerfile",
7-
// Update 'VARIANT' to pick an Ubuntu version: focal, bionic
8-
"args": { "VARIANT": "focal" }
9-
},
3+
"name": "Arcane Algorithm Archive All Languages",
4+
5+
// Comment out 'image' and uncomment 'build' to test changes to the dockerfile locally
6+
"image": "ghcr.io/algorithm-archivists/aaa-langs:latest",
7+
// "build": {\
8+
// // For config options, see the README at:https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/ubuntu
9+
// "dockerfile": "../Dockerfile",
10+
// // Update 'VARIANT' to pick an Ubuntu version: focal, bionic
11+
// "args": { "VARIANT": "focal" }
12+
// },
1013

1114
// Set *default* container specific settings.json values on container create.
1215
"settings": {},
1316

14-
1517
// Add the IDs of extensions you want installed when the container is created.
1618
"extensions": [],
1719

18-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
19-
// "forwardPorts": [],
20-
21-
// Use 'postCreateCommand' to run commands after the container is created.
22-
// "postCreateCommand": "uname -a",
23-
24-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
25-
// "remoteUser": "vscode"
20+
// Use 'forwardPorts' to make a list of ports inside the container available locally (outside the container).
21+
// Port : Usage
22+
// 4000 : Honkit serves by default on this port
23+
"forwardPorts": [4000]
2624
}

0 commit comments

Comments
 (0)