Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed May 20, 2024
1 parent 1df9c15 commit 09c7dcf
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,33 @@
{
"name": "Ubuntu",
"build": {
"dockerfile": "../Dockerfile"
"dockerfile": "mcr.microsoft.com/devcontainers/java:17"
},
"customizations": {
"vscode": {
"extensions": [
// "scalameta.metals",
// "usernamehw.errorlens",
// "vscjava.vscode-java-pack",
// "github.copilot",
// "github.copilot-chat",
// "github.vscode-github-actions",
// "github.vscode-pull-request-github",
// "eamodio.gitlens",
// "ms-vscode-remote.remote-containers",
// "github.vscode-pull-request-github"
"scalameta.metals",
"usernamehw.errorlens",
"vscjava.vscode-java-pack",
"github.copilot",
"github.copilot-chat",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"eamodio.gitlens",
"ms-vscode-remote.remote-containers",
"github.vscode-pull-request-github"
]
}
},

// // Features to add to the dev container. More info: https://containers.dev/features.
// "features": {
// // "ghcr.io/devcontainers/features/java:1": {
// // "version": 21
// // }
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": 21
},
"./features/mill": {}
// //, "ghcr.io/devcontainers-contrib/features/scalacli-sdkman:2": {}
// },
},

// // Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
Expand Down
8 changes: 8 additions & 0 deletions .devcontainer/features/mill/feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "mill",
"version": "1.0.0",
"name": "Mill Build Tool",
"description": "Installs Mill, a Scala build tool.",
"installsAfter": [],
"options": {}
}
9 changes: 9 additions & 0 deletions .devcontainer/features/mill/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -e

# Install Mill
$ curl -L -o /usr/local/bin/mill https://raw.githubusercontent.com/lefou/millw/0.4.11/millw > mill && chmod +x /usr/local/bin/mill

# Verify installation
mill version

0 comments on commit 09c7dcf

Please sign in to comment.