Dockerize

This commit is contained in:
Logan Garrett 2015-12-08 04:42:51 +00:00
commit d514eff939
4 changed files with 44 additions and 0 deletions

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM python:2
## Maintainer info
MAINTAINER Logan Garrett <https://github.com/lngarrett>
COPY . .
CMD [ "python", "PlexPy.py"]

View file

@ -2,6 +2,8 @@
[![Join the chat at https://gitter.im/drzoidberg33/plexpy](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/drzoidberg33/plexpy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Circle CI](https://circleci.com/gh/lngarrett/plexpy.svg?style=svg)](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
View 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
View 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