mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-22 06:13:25 -07:00
Dockerize
This commit is contained in:
parent
de39f7691c
commit
d514eff939
4 changed files with 44 additions and 0 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
FROM python:2
|
||||
|
||||
## Maintainer info
|
||||
MAINTAINER Logan Garrett <https://github.com/lngarrett>
|
||||
|
||||
COPY . .
|
||||
CMD [ "python", "PlexPy.py"]
|
||||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
[](https://gitter.im/drzoidberg33/plexpy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
[](https://circleci.com/gh/lngarrett/plexpy)
|
||||
|
||||
A python based web application for monitoring, analytics and notifications for Plex Media Server (www.plex.tv).
|
||||
|
||||
This project is based on code from Headphones (https://github.com/rembo10/headphones) and PlexWatchWeb (https://github.com/ecleese/plexWatchWeb).
|
||||
|
|
25
circle.yml
Normal file
25
circle.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
machine:
|
||||
services:
|
||||
- docker
|
||||
|
||||
dependencies:
|
||||
cache_directories:
|
||||
- "~/docker"
|
||||
override:
|
||||
- docker info
|
||||
- if [[ -e ~/docker/image.tar ]]; then docker load --input ~/docker/image.tar; fi
|
||||
- docker build -t lngarrett/plexpy .
|
||||
- mkdir -p ~/docker; docker save lngarrett/plexpy > ~/docker/image.tar
|
||||
|
||||
test:
|
||||
override:
|
||||
- docker run -d -p 8181:8181 lngarrett/plexpy
|
||||
- sleep 60
|
||||
- curl http://localhost:8181
|
||||
|
||||
deployment:
|
||||
hub:
|
||||
branch: master
|
||||
commands:
|
||||
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||
- docker push lngarrett/plexpy
|
9
docker_run.sh
Executable file
9
docker_run.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
docker rm -f plexpy
|
||||
docker pull lngarrett/plexpy:latest
|
||||
docker run \
|
||||
--name="plexpy" \
|
||||
--publish=8181:8181 \
|
||||
--restart="always" \
|
||||
--detach=true \
|
||||
lngarrett/plexpy
|
Loading…
Add table
Add a link
Reference in a new issue