Devcontainer, fixes

This commit is contained in:
PingWin committed 2021-05-21 14:25:32 +00:00
1 parent b619253510
commit 8ca93bf060
26 files changed
+929 -302

No files matched your search

+64
View File
@@ -0,0 +1,64 @@
//devcontainer.json
{
"name": "Kinopoisk plugin (jellyfin) Devcontainer",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update 'VARIANT' to pick a .NET Core version: 2.1, 3.1, 5.0
"VARIANT": "5.0",
// Options
"INSTALL_NODE": "true",
"NODE_VERSION": "lts/*",
"INSTALL_AZURE_CLI": "false"
}
},
"workspaceFolder": "/workspace",
"workspaceMount": "source=/home/pingwin/development/jellyfin-kinopoisk,target=/workspace,type=bind,consistency=cached",
"extensions": [
"ms-dotnettools.csharp",
"mhutchie.git-graph",
"github.vscode-pull-request-github",
"editorconfig.editorconfig",
"formulahendry.dotnet-test-explorer"
],
"forwardPorts": [
8096,
8920,
1900,
7359
],
// "postCreateCommand": "apt-get update && apt-get install -y git",
// "runArgs": [
// "--datadir=/config",
// "--cachedir=/cache",
// "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"
// ],
"shutdownAction": "none",
"mounts": [
"source=vscode-extensions,target=/root/.vscode-server/extensions,type=volume",
"source=/home/pingwin/development/jellyfin-data,target=/jellyfin-data,type=bind,consistency=cached",
"source=/storage/torrents,target=/jellyfin-media,type=bind,consistency=cached",
"source=/home/pingwin/development/jellyfin,target=/workspace-jellyfin,type=bind,consistency=cached",
],
"containerEnv": {
"DOTNET_CLI_TELEMETRY_OPTOUT": "1",
"DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE": "false",
"JELLYFIN_DATA_DIR": "/jellyfin-data",
"JELLYFIN_WEB_DIR": "/jellyfin-web/dist",
},
"portsAttributes": {
"1900": {
"label": "ssdp"
},
"8096": {
"label": "www"
},
"8920": {
"label": "www-ssl"
}
},
// "runArgs": [
// "--env-file",
// ".devcontainer/devcontainer.env"
// ],
}