Skip to content

Commit

Permalink
✨ Add podcast plugin to mopidy base image
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianpb committed Jan 21, 2024
1 parent 9098b37 commit 82bf296
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ COPY pyproject.toml ./
ADD ./mopidy_muse ./mopidy_muse
ADD ./__sapper__/export/muse ./mopidy_muse/static

RUN ls *
RUN pip3 install --no-clean .

EXPOSE 6680
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-base
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RUN apt-get install -y \
rm -rf /var/lib/apt/lists/* && \
apt-get purge --auto-remove && \
apt-get clean
RUN pip3 install --no-cache-dir Mopidy-TuneIn Mopidy-Local
RUN pip3 install --no-cache-dir Mopidy-TuneIn Mopidy-Local Mopidy-Podcast Mopidy-Podcast

# vim:filetype=dockerfile
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mopidy-start:
echo -e "mopidy started in $$((30 - timeout)) seconds"; exit $$ret

mopidy-stop:
docker-compose down --remove-orphan
docker-compose down --remove-orphans

build-docker-mopidy:
docker build -f Dockerfile-base -t cristianpb/mopidy-base:${PACKAGE_VERSION} --target base .
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ services:
volumes:
- ./__sapper__/export/muse:/${APP}/mopidy_muse/static
- ./mopidy_muse/mopidy.conf:/root/.config/mopidy/mopidy.conf
- ./mopidy_muse/Podcasts.opml:/etc/mopidy/podcast/Podcasts.opml
- ${HOST_MUSIC_DIRECTORY}:/var/lib/mopidy/music
- ${HOST_PLAYLIST_DIRECTORY}:/var/lib/mopidy/playlists
- ${HOST_SNAPCAST_TEMP}:/tmp
Expand Down
13 changes: 13 additions & 0 deletions mopidy_muse/Podcasts.opml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>feedolin</title>
</head>
<body>

<outline text="Podcast" title="Podcast">
<outline type="rss" text="bbc news" title="bbc news" xmlUrl="https://podcasts.files.bbci.co.uk/b006qjxt.rss" htmlUrl=""/>
</outline>

</body>
</opml>

0 comments on commit 82bf296

Please sign in to comment.