-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create devcontainer configuration (#6479)
* Add basic devcontainer config * Use Dockerfile for devcontainer This is to install additional dependencies that don't come with base image. * Fetch test references These references are necessary for tests to work properly. * Depluralize * Add YAML VSCode extension Most peeps will be editing the YAML files so lets ensure a better experience * Move bootstrap to onCreateCommand This will allow the bootstrapping to be cached in the prebuild and save users a lot of time * Make arrays multi-line Co-authored-by: John Gardner <gardnerjohng@gmail.com> --------- Co-authored-by: Colin Seymour <colin@symr.io> Co-authored-by: Colin Seymour <colin@github.com> Co-authored-by: John Gardner <gardnerjohng@gmail.com>
- Loading branch information
1 parent
9b634a0
commit 826cc7d
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Available versions: https://github.com/devcontainers/images/tree/main/src/ruby | ||
FROM mcr.microsoft.com/devcontainers/ruby | ||
RUN apt update && apt install -y cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "Ruby", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
"ghcr.io/devcontainers/features/go:1": {} | ||
}, | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": [ | ||
"CONTRIBUTING.md", | ||
"lib/linguist/languages.yml" | ||
] | ||
}, | ||
"vscode": { | ||
"extensions": [ | ||
"EditorConfig.EditorConfig", | ||
"rebornix.Ruby", | ||
"redhat.vscode-yaml" | ||
] | ||
} | ||
}, | ||
"onCreateCommand": "./script/bootstrap", | ||
"postCreateCommand": ".devcontainer/postCreate.sh", | ||
"remoteUser": "vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
git remote add linguist https://github.com/github-linguist/linguist | ||
git fetch linguist v2.0.0:v2.0.0 test/attributes:test/attributes test/master:test/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Fix syntax highlighting for devcontainer files | ||
.devcontainer/*.json linguist-language=JSON-with-Comments |