mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Add VSCode devcontainers
Should be useful for getting a development environment setup quickly.
This commit is contained in:
parent
3da846d1b1
commit
dd39b2be64
10
.devcontainer/devcontainer.json
Normal file
10
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "Homebrew/brew",
|
||||
"image": "ghcr.io/homebrew/brew:latest",
|
||||
"workspaceFolder": "/home/linuxbrew/.linuxbrew/Homebrew",
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/home/linuxbrew/.linuxbrew/Homebrew,type=bind,consistency=cached",
|
||||
"onCreateCommand": ".devcontainer/on-create-command.sh",
|
||||
"remoteEnv": {
|
||||
"HOMEBREW_GITHUB_API_TOKEN": "${localEnv:GITHUB_TOKEN}"
|
||||
}
|
||||
}
|
10
.devcontainer/on-create-command.sh
Executable file
10
.devcontainer/on-create-command.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
-o Dpkg::Options::=--force-confdef \
|
||||
-o Dpkg::Options::=--force-confnew \
|
||||
zsh \
|
||||
shellcheck \
|
||||
zsh-autosuggestions
|
10
.devcontainer/ubuntu18.04/devcontainer.json
Normal file
10
.devcontainer/ubuntu18.04/devcontainer.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "Homebrew/brew-ubuntu18.04",
|
||||
"image": "ghcr.io/homebrew/ubuntu18.04:latest",
|
||||
"workspaceFolder": "/home/linuxbrew/.linuxbrew/Homebrew",
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/home/linuxbrew/.linuxbrew/Homebrew,type=bind,consistency=cached",
|
||||
"onCreateCommand": ".devcontainer/on-create-command.sh",
|
||||
"remoteEnv": {
|
||||
"HOMEBREW_GITHUB_API_TOKEN": "${localEnv:GITHUB_TOKEN}"
|
||||
}
|
||||
}
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -171,7 +171,8 @@
|
||||
# Unignore our `brew` script.
|
||||
!/bin/brew
|
||||
|
||||
# Unignore our documentation/completions.
|
||||
# Unignore our configuration/completions/documentation.
|
||||
!/.devcontainer
|
||||
!/.github
|
||||
!/completions
|
||||
!/docs
|
||||
|
Loading…
x
Reference in New Issue
Block a user