mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Devcontainer `make build` previously wrote a Linux binary to `bin/skillshare` via the shared volume mount, overwriting the host's macOS binary and causing `exec format error`. Introduce a `BINARY` variable (Makefile) / `SKILLSHARE_BINARY` env var (mise) so devcontainer builds to `/usr/local/bin/skillshare` while the host keeps `bin/skillshare`. Also update `scripts/test.sh` to respect a pre-set `SKILLSHARE_TEST_BINARY` instead of unconditionally overwriting it.
32 lines
940 B
JSON
32 lines
940 B
JSON
{
|
|
"name": "Skillshare Dev",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "skillshare-devcontainer",
|
|
"workspaceFolder": "/workspace",
|
|
"forwardPorts": [5173, 19420, 3000],
|
|
"portsAttributes": {
|
|
"5173": { "label": "Dashboard (ui)" },
|
|
"19420": { "label": "API Backend" },
|
|
"3000": { "label": "Docs (docs)" }
|
|
},
|
|
"remoteEnv": {
|
|
"PATH": "/workspace/.devcontainer/bin:/usr/local/bin:${containerEnv:PATH}",
|
|
"SKILLSHARE_UI_HOST": "0.0.0.0",
|
|
"BINARY": "/usr/local/bin/skillshare",
|
|
"SKILLSHARE_BINARY": "/usr/local/bin/skillshare",
|
|
"SKILLSHARE_TEST_BINARY": "/usr/local/bin/skillshare"
|
|
},
|
|
"postCreateCommand": ".devcontainer/setup.sh",
|
|
"postStartCommand": ".devcontainer/start-dev.sh",
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"golang.go",
|
|
"bradlc.vscode-tailwindcss",
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode"
|
|
]
|
|
}
|
|
}
|
|
}
|