1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00
This commit is contained in:
kev 2016-05-04 15:12:14 +08:00
parent ced0d1e6c8
commit e8df88b31c
4 changed files with 57 additions and 1 deletions

@ -17,7 +17,6 @@ dockerfiles
- [ ] gitolite
- [ ] hashcat
- [ ] irc
- [ ] plex
- [ ] sensu
- [ ] tshark
@ -77,6 +76,7 @@ dockerfiles
- [x] phantomjs
- [x] phpbb
- [x] piwik
- [x] plex
- [x] polipo
- [x] portia
- [x] pptpd

37
plex/Dockerfile Normal file

@ -0,0 +1,37 @@
#
# Dockerfile for plex
#
FROM debian:jessie
MAINTAINER kev <noreply@easypi.info>
ENV PLEX_VERSION 0.9.16.6.1993-5089475
ENV PLEX_FILE plexmediaserver_${PLEX_VERSION}_amd64.deb
ENV PLEX_URL https://downloads.plex.tv/plex-media-server/${PLEX_VERSION}/${PLEX_FILE}
RUN set -xe \
&& apt-get update \
&& apt-get install -y curl \
&& curl -sSL ${PLEX_URL} -o ${PLEX_FILE} \
&& dpkg -i ${PLEX_FILE} \
&& apt-get install -f \
&& rm -rf ${PLEX_FILE} /var/lib/apt/lists/*
ENV PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR "/var/lib/plexmediaserver/Library/Application Support"
ENV PLEX_MEDIA_SERVER_HOME /usr/lib/plexmediaserver
ENV PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS 6
ENV PLEX_MEDIA_SERVER_TMPDIR /tmp
ENV LD_LIBRARY_PATH /usr/lib/plexmediaserver
ENV LANG en_US.utf8
RUN set -xe \
&& mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" \
&& chmod -R a+rwX "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
VOLUME "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"
EXPOSE 32400
CMD set -xe \
&& rm -f "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}/Plex Media Server/plexmediaserver.pid" \
&& "/usr/lib/plexmediaserver/Plex Media Server"

7
plex/README.md Normal file

@ -0,0 +1,7 @@
plex
====
The free [Plex Media Server][1] simplifies your life by organizing all of your
personal media, making it beautiful and streaming it to all of your devices.
[1]: https://plex.tv/

12
plex/docker-compose.yml Normal file

@ -0,0 +1,12 @@
plex:
image: vimagick/plex
ports:
- "32400:32400"
volumes:
- "./data:/data:ro"
- "./data/plex:/var/lib/plexmediaserver/Library/Application Support"
environment:
- "HOME=/data"
working_dir: /data
# user: 1000:1000
restart: always