Skip to content

Commit 5058129

Browse files
committed
Draft of a devcontainer development environment
A minimal devcontainer for building and running CRG scoreboard. Tested with the [devcontainer CLI](https://github.com/devcontainers/cli), I haven't tested it with VS Code yet. Will likely want to add additional tools like language servers, etc. to make development easier. see https://containers.dev
1 parent 48573e7 commit 5058129

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.devcontainer/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM mcr.microsoft.com/devcontainers/java:1-21-bookworm
2+
3+
RUN apt-get update && apt-get install -y ant

.devcontainer/devcontainer.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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/java
3+
{
4+
"name": "Java",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
},
8+
// // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
9+
// "image": "mcr.microsoft.com/devcontainers/java:1-21-bookworm",
10+
11+
"features": {
12+
"ghcr.io/devcontainers/features/java:1": {
13+
"version": "none",
14+
"installMaven": "false",
15+
"installGradle": "false"
16+
}
17+
},
18+
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
"forwardPorts": [],
21+
"appPort": ["127.0.0.1:8000:8000"]
22+
23+
// Use 'postCreateCommand' to run commands after the container is created.
24+
// "postCreateCommand": "java -version",
25+
26+
// Configure tool-specific properties.
27+
// "customizations": {},
28+
29+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
30+
// "remoteUser": "root"
31+
}

0 commit comments

Comments
 (0)