mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-07-10 09:40:16 -04:00
dev: Add GH CLI to devcontainer (#7857)
This commit is contained in:
14
.devcontainer/devcontainer-lock.json
Normal file
14
.devcontainer/devcontainer-lock.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||||
|
"version": "2.17.0",
|
||||||
|
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:25b9f05705ffba7dbe503230ac76081419306f8c8bc88e0ce78c4ecd99a0c78c",
|
||||||
|
"integrity": "sha256:25b9f05705ffba7dbe503230ac76081419306f8c8bc88e0ce78c4ecd99a0c78c"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/github-cli:1": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
|
||||||
|
"integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,7 +16,8 @@
|
|||||||
},
|
},
|
||||||
"mounts": [
|
"mounts": [
|
||||||
"source=mealie-devcontainer-workspace,target=/workspaces/mealie/frontend/node_modules,type=volume",
|
"source=mealie-devcontainer-workspace,target=/workspaces/mealie/frontend/node_modules,type=volume",
|
||||||
"source=mealie-bashhistory,target=/home/vscode/commandhistory,type=volume"
|
"source=mealie-bashhistory,target=/home/vscode/commandhistory,type=volume",
|
||||||
|
"source=mealie-gh-config,target=/home/vscode/.config/gh,type=volume"
|
||||||
],
|
],
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
@@ -49,13 +50,14 @@
|
|||||||
],
|
],
|
||||||
// Use 'onCreateCommand' to run commands at the end of container creation.
|
// Use 'onCreateCommand' to run commands at the end of container creation.
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"onCreateCommand": "sudo chown -R vscode:vscode /workspaces/mealie/frontend/node_modules /home/vscode/commandhistory && task setup --force",
|
"onCreateCommand": "sudo chown -R vscode:vscode /workspaces/mealie/frontend/node_modules /home/vscode/commandhistory /home/vscode/.config/gh && task setup --force",
|
||||||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
"remoteUser": "vscode",
|
"remoteUser": "vscode",
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||||
"dockerDashComposeVersion": "v2"
|
"dockerDashComposeVersion": "v2"
|
||||||
}
|
},
|
||||||
|
"ghcr.io/devcontainers/features/github-cli:1": {}
|
||||||
},
|
},
|
||||||
"appPort": [
|
"appPort": [
|
||||||
"3000:3000",
|
"3000:3000",
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -28,9 +28,10 @@ dev/data/groups/*
|
|||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
|
|
||||||
# local env files
|
# local files
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
|
*.local.*
|
||||||
|
|
||||||
|
|
||||||
# Log files
|
# Log files
|
||||||
|
|||||||
Reference in New Issue
Block a user