-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from usrbinkat/feat/usrbinkat/devcontainer
[feat] Boilerplate developer experience enhancements
- Loading branch information
Showing
48 changed files
with
812 additions
and
219 deletions.
There are no files selected for viewing
Submodule .devcontainer
added at
dce1e3
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,68 @@ | ||
// Reference: | ||
// - https://containers.dev/features | ||
// - https://containers.dev/implementors/features | ||
// - https://code.visualstudio.com/docs/getstarted/settings | ||
{ | ||
"name": "pulumi", | ||
"image": "ghcr.io/pulumi/devcontainer", | ||
"customizations": { | ||
"vscode": { | ||
"settings": [ | ||
"go.testTags", "all", | ||
"go.buildTags", "all", | ||
"editor.minimap.enabled", false, | ||
"explorer.openEditors.visible", 1, | ||
"editor.quickSuggestionsDelay", 0, | ||
"editor.suggestSelection", "first", | ||
"editor.snippetSuggestions", "top", | ||
"editor.gotoLocation.multipleReferences", "goto", | ||
"editor.gotoLocation.multipleDefinitions", "goto", | ||
"editor.gotoLocation.multipleDeclarations", "goto", | ||
"editor.gotoLocation.multipleImplementations", "goto", | ||
"editor.gotoLocation.multipleTypeDefinitions", "goto", | ||
"editor.terminal.integrated.shell.linux", "/usr/bin/zsh", | ||
"files.trimTrailingWhitespace", true, | ||
"files.trimFinalNewlines", true | ||
], | ||
"extensions": [ | ||
"golang.go", | ||
"vscodevim.vim", | ||
"github.copilot", | ||
"ms-python.python", | ||
"jetpack-io.devbox", | ||
"redhat.vscode-yaml", | ||
"esbenp.prettier-vscode", | ||
"ms-vscode.makefile-tools", | ||
"ms-azuretools.vscode-docker", | ||
"github.vscode-pull-request-github", | ||
"ms-vscode-remote.remote-containers", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"bierner.markdown-preview-github-styles" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": true, | ||
"configureZshAsDefaultShell": true, | ||
"installOhMyZsh": true, | ||
"installOhMyZshConfig": true, | ||
"upgradePackages": true, | ||
"nonFreePackages": true, | ||
"username": "vscode", | ||
"userUid": "automatic", | ||
"userGid": "automatic" | ||
}, | ||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": { | ||
"moby": false, | ||
"installDockerBuildx": true, | ||
"version": "latest", | ||
"dockerDashComposeVersion": "v2" | ||
} | ||
}, | ||
"postCreateCommand": "git submodule update --init --recursive", | ||
"remoteUser": "vscode", | ||
"forwardPorts": [1313], | ||
"runArgs": ["--network=host"] | ||
} | ||
|
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,62 @@ | ||
name: Makefile | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker://ghcr.io/pulumi/devcontainer:latest | ||
options: --user root | ||
permissions: | ||
contents: read | ||
packages: read | ||
actions: read | ||
steps: | ||
- | ||
name: Checkout repository | ||
uses: actions/checkout@v4 | ||
id: git | ||
with: | ||
submodules: 'recursive' | ||
- | ||
name: Unshallow clone for tags | ||
id: tags | ||
run: | | ||
sudo chown -R $(whoami) /__w/pulumi-provider-boilerplate/pulumi-provider-boilerplate | ||
git config --global --add safe.directory /__w/pulumi-provider-boilerplate/pulumi-provider-boilerplate | ||
git fetch --prune --unshallow --tags | ||
- | ||
name: Build | ||
id: build | ||
run: | | ||
make build | ||
- | ||
name: Install | ||
id: install | ||
run: | | ||
set -ex | ||
make install | ||
- | ||
name: PulumiUp | ||
id: up | ||
run: make up | ||
- | ||
name: PulumiDown | ||
id: down | ||
run: make down | ||
- | ||
name: Generate multi-language examples from yaml IaC program | ||
id: examples | ||
run: | | ||
set -ex | ||
make gen_examples |
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 @@ | ||
[submodule ".devcontainer"] | ||
path = .devcontainer | ||
url = https://github.com/pulumi/devcontainer |
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
Oops, something went wrong.