Skip to content

Commit

Permalink
Adding dev container for development.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankenyr committed Oct 28, 2024
1 parent 448d37f commit b90e8e7
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
WORKDIR /workspaces/
RUN git clone https://github.com/ankenyr/jellyfin-plugin-repo
RUN chown -R vscode jellyfin-plugin-repo/
RUN chgrp -R vscode jellyfin-plugin-repo/
RUN chgrp -R vscode jellyfin-plugin-repo/
RUN apt install extrepo -y
RUN apt update
RUN extrepo enable jellyfin
RUN apt update
RUN apt install jellyfin -y
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Youtube Metadata",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/",
"workspaceFolder": "/workspaces/youtube-metadata",
"features": {
"ghcr.io/guiyomh/features/vim:0": {},
"ghcr.io/devcontainers/features/python:1": {}
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,8 @@ UpgradeLog*.XML
# MonoDevelop metafiles
MediaBrowser.Plugins.Anime.userprefs

media_copy.py
cachedir
logdir
datadir
library
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "jellyfin ",
"args": ["-d", "./datadir", "-C", "cachedir", "-l", "logdir", "-w", "/usr/share/jellyfin/web"],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
41 changes: 41 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "mkdir",
"type": "shell",
"command": "mkdir",
"args": ["-p", "/workspaces/youtube-metadata/datadir/plugins/youtube-metadata"]
},
{
"label": "cp",
"type": "shell",
"command": "cp",
"args": ["/workspaces/youtube-metadata/Jellyfin.Plugin.YoutubeMetadata/bin/Debug/net8.0/*", "/workspaces/youtube-metadata/datadir/plugins/youtube-metadata"]
},
{
"label": "build-plugin",
"command": "dotnet",
"type": "shell",
"args": [
"build",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
],
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
{
"label": "build",
"dependsOn": ["mkdir", "build-plugin", "cp"],
"dependsOrder": "sequence"
}
]
}
11 changes: 11 additions & 0 deletions workspaces.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"folders": [
{
"path": "."
}
],
"launch": {
"version": "0.2.0",
"configurations": []
}
}

0 comments on commit b90e8e7

Please sign in to comment.