generated from devcontainers/template-starter
-
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.
- Loading branch information
1 parent
0f6eedf
commit a6c2633
Showing
24 changed files
with
356 additions
and
294 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,45 @@ | ||
{ | ||
"features": { | ||
"ghcr.io/deep-space-cartel/devcontainers-features/apt:1": { | ||
"version": "1.1.0", | ||
"resolved": "ghcr.io/deep-space-cartel/devcontainers-features/apt@sha256:3a8ef060a682ecded4d2b68c951a4f58d22629df4f169534ae9b4e647a60e8d2", | ||
"integrity": "sha256:3a8ef060a682ecded4d2b68c951a4f58d22629df4f169534ae9b4e647a60e8d2" | ||
}, | ||
"ghcr.io/deep-space-cartel/devcontainers-features/pip:1": { | ||
"version": "1.0.0", | ||
"resolved": "ghcr.io/deep-space-cartel/devcontainers-features/pip@sha256:9e68548232099e2fa129723ae3c0962b59416c16028c8d7c1a10d963a3ff05ac", | ||
"integrity": "sha256:9e68548232099e2fa129723ae3c0962b59416c16028c8d7c1a10d963a3ff05ac", | ||
"dependsOn": [ | ||
"ghcr.io/deep-space-cartel/devcontainers-features/apt:1" | ||
] | ||
}, | ||
"ghcr.io/deep-space-cartel/devcontainers-features/starship:1": { | ||
"version": "1.2.0", | ||
"resolved": "ghcr.io/deep-space-cartel/devcontainers-features/starship@sha256:70ae84bb250918d1da871ca6e2bdc7017ff420cc7dd04bafc0ec6ecb8527e4ef", | ||
"integrity": "sha256:70ae84bb250918d1da871ca6e2bdc7017ff420cc7dd04bafc0ec6ecb8527e4ef", | ||
"dependsOn": [ | ||
"ghcr.io/devcontainers/features/common-utils" | ||
] | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils": { | ||
"version": "2.5.1", | ||
"resolved": "ghcr.io/devcontainers/features/common-utils@sha256:9da676524999513412f2c27604d786ba0bbf3575eb1859166c5a1233f037fc08", | ||
"integrity": "sha256:9da676524999513412f2c27604d786ba0bbf3575eb1859166c5a1233f037fc08" | ||
}, | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": { | ||
"version": "2.11.0", | ||
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:503f23cd692325b3cbb8c20a0ecfabb3444b0c786b363e0c82572bd7d71dc099", | ||
"integrity": "sha256:503f23cd692325b3cbb8c20a0ecfabb3444b0c786b363e0c82572bd7d71dc099" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"version": "1.3.2", | ||
"resolved": "ghcr.io/devcontainers/features/git@sha256:63c96e8ac33f5630300d8883e2ec3123278de70d318589af596ea1954846014d", | ||
"integrity": "sha256:63c96e8ac33f5630300d8883e2ec3123278de70d318589af596ea1954846014d" | ||
}, | ||
"ghcr.io/devcontainers/features/github-cli:1": { | ||
"version": "1.0.13", | ||
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:13b301a039ce9e0bb07d45ea0c106c946cfff01c3b9844bbec6b0c7bacba8de3", | ||
"integrity": "sha256:13b301a039ce9e0bb07d45ea0c106c946cfff01c3b9844bbec6b0c7bacba8de3" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,16 +1,141 @@ | ||
// More info: https://containers.dev/implementors/json_reference/ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"mads-hartmann.bash-ide-vscode", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "npm install -g @devcontainers/cli" | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye", | ||
"remoteEnv": { | ||
"WAKATIME_API_KEY": "${localEnv:WAKATIME_API_KEY}", | ||
"PATH": "${containerEnv:PATH}:/opt/pip/bin" | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/git:1": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
"ghcr.io/deep-space-cartel/devcontainers-features/starship:1": {}, | ||
"ghcr.io/deep-space-cartel/devcontainers-features/apt:1": { | ||
"packages": "bash-completion shellcheck mc python3-pip python3-venv" // shfmt | ||
}, | ||
"ghcr.io/deep-space-cartel/devcontainers-features/pip:1": { | ||
"packages": "pre-commit", | ||
"location": "/opt/pip" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "pre-commit: manual", | ||
"type": "shell", | ||
"command": "pre-commit", | ||
"args": [ | ||
"run", | ||
"--hook-stage", | ||
"manual" | ||
], | ||
"group": { | ||
"kind": "test", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "Dev Containers: Build ubik", | ||
"type": "shell", | ||
"command": ".github/actions/smoke-test/build.sh", | ||
"args": [ | ||
"ubik" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "Starship: Install Completions", | ||
"type": "shell", | ||
"command": "sudo", | ||
"args": [ | ||
"bash", | ||
"-c", | ||
"starship completions $(basename $SHELL) > /etc/bash_completion.d/99-starship-completions.sh" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "Dev Containers: Publish Templates", | ||
"type": "shell", | ||
"command": "devcontainer", | ||
"args": [ | ||
"templates", | ||
"publish", | ||
"--namespace", | ||
"deep-space-cartel/devcontainers-templates", | ||
"src/" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "Dev Containers: Upgrade lockfile", | ||
"type": "shell", | ||
"command": "devcontainer", | ||
"args": [ | ||
"upgrade", | ||
"--workspace-folder", | ||
"." | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "Dev Container Feature: Generate Docs", | ||
"type": "shell", | ||
"command": "devcontainer", | ||
"args": [ | ||
"templates", | ||
"generate-docs", | ||
"--github-owner", | ||
"deep-space-cartel", | ||
"--github-repo", | ||
"devcontainers-templates", | ||
"--project-folder", | ||
"src/" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
} | ||
] | ||
}, | ||
"editor.fontFamily": "'Hack Nerd Font Mono'", | ||
"terminal.integrated.fontFamily": "'Hack Nerd Font Mono'", | ||
"files.insertFinalNewline": true, | ||
"dotfiles.repository": "deep-space-cartel/dotfiles", | ||
"cSpell.enableFiletypes": [ | ||
"*" | ||
], | ||
"remote.extensionKind": { | ||
"ms-vscode.PowerShell": [ | ||
"ui" | ||
], | ||
"1Password.op-vscode": [ | ||
"ui" | ||
] | ||
} | ||
}, | ||
"extensions": [ | ||
"mads-hartmann.bash-ide-vscode", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "npm install -g @devcontainers/cli" | ||
} |
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 @@ | ||
GITHUB_TOKEN = "op://DeepSpaceCartel/GITHUB_TOKEN/CLASSIC" |
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
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,12 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: mixed-line-ending | ||
args: ['--fix=lf'] |
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,11 @@ | ||
# Usage: Run PowerShell as Administrator and execute this: | ||
# Set-ExecutionPolicy RemoteSigned | ||
|
||
# Define the path to your .env file | ||
$envFilePath = "./.env" | ||
|
||
# Define the command to execute | ||
$command = "op run --env-file='$envFilePath' -- code --new-window ." | ||
|
||
# Execute the command | ||
Invoke-Expression $command |
Oops, something went wrong.