mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Add tooling for testing private repo auth inside the devcontainer: - credential-helper script (on/off/status) with --eval mode to toggle both git credential helper and token env vars in one command - remoteEnv forwards host token env vars (GITHUB_TOKEN, GITLAB_TOKEN, BITBUCKET_TOKEN, BITBUCKET_USERNAME, SKILLSHARE_GIT_TOKEN) - docker-compose env_file for .devcontainer/.env (optional, gitignored) - start-dev.sh auto-detects GITHUB_TOKEN from gh CLI on container start - .env.example template for all supported tokens - docker-sandbox.md documents token sources and private repo testing
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "Skillshare Dev",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "skillshare-devcontainer",
|
|
"workspaceFolder": "/workspace",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
"version": "24",
|
|
"pnpmVersion": "10.28.0"
|
|
}
|
|
},
|
|
"forwardPorts": [5173, 19420, 3000],
|
|
"portsAttributes": {
|
|
"5173": { "label": "Dashboard (ui)" },
|
|
"19420": { "label": "API Backend" },
|
|
"3000": { "label": "Docs (docs)" }
|
|
},
|
|
"remoteEnv": {
|
|
"PATH": "/workspace/.devcontainer/bin:/workspace/bin:${containerEnv:PATH}",
|
|
"SKILLSHARE_UI_HOST": "0.0.0.0",
|
|
"GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}",
|
|
"GITLAB_TOKEN": "${localEnv:GITLAB_TOKEN}",
|
|
"BITBUCKET_TOKEN": "${localEnv:BITBUCKET_TOKEN}",
|
|
"BITBUCKET_USERNAME": "${localEnv:BITBUCKET_USERNAME}",
|
|
"SKILLSHARE_GIT_TOKEN": "${localEnv:SKILLSHARE_GIT_TOKEN}"
|
|
},
|
|
"postCreateCommand": ".devcontainer/setup.sh",
|
|
"postStartCommand": ".devcontainer/start-dev.sh",
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"golang.go",
|
|
"bradlc.vscode-tailwindcss",
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode"
|
|
]
|
|
}
|
|
}
|
|
}
|