forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: Use the common linkerd devcontainer image (kubernetes#1465)
This repo's devcontainer runs everything as root, which can lead to weird permissions, especially in the `.git/` directory. This change replaces the repo-specific devcontainer with the general `linkerd/dev` container. Custom tools like `hugo`, `htmltest`, and `gcloud` are installed via an on-create script. Signed-off-by: Oliver Gould <ver@buoyant.io>
- Loading branch information
Showing
3 changed files
with
43 additions
and
33 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
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,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
cd $(mktemp -d) | ||
|
||
# hugo | ||
scurl -O https://github.com/gohugoio/hugo/releases/download/v0.61.0/hugo_extended_0.61.0_Linux-64bit.deb | ||
sudo dpkg -i hugo*.deb | ||
rm hugo*.deb | ||
|
||
# htmltest | ||
scurl https://htmltest.wjdp.uk | bash | ||
sudo mv bin/htmltest /usr/local/bin | ||
|
||
# gcloud | ||
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" \ | ||
| sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | ||
scurl https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | ||
| sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - | ||
sudo apt-get update | ||
sudo apt-get install google-cloud-cli |
This file was deleted.
Oops, something went wrong.