From 9a6bf3f0a3054f75737e172f2b0a7a5bba5a83ce Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Mon, 7 Dec 2015 22:40:32 -0500 Subject: [PATCH 1/7] dockerfile for building image --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d9e85505 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM python:2 +COPY . . +CMD [ "python", "PlexPy.py"] + From 8a1cbba023aa623f4740ad1e4213c5e3605e64fb Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Tue, 8 Dec 2015 03:48:59 +0000 Subject: [PATCH 2/7] cirlce CI --- Dockerfile | 4 ++++ circle.yml | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 circle.yml diff --git a/Dockerfile b/Dockerfile index d9e85505..e535835a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ FROM python:2 + +## Maintainer info +MAINTAINER Logan Garrett + COPY . . CMD [ "python", "PlexPy.py"] diff --git a/circle.yml b/circle.yml new file mode 100644 index 00000000..588f6243 --- /dev/null +++ b/circle.yml @@ -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 8989:8989 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/docker-plexpy From ef6f35b8ec3f7722663404109a45c5e610e433cf Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Tue, 8 Dec 2015 03:51:35 +0000 Subject: [PATCH 3/7] proper docker port --- README.md | 2 ++ circle.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56a90ac3..ac80b3a3 100644 --- a/README.md +++ b/README.md @@ -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/docker-sonarr.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). diff --git a/circle.yml b/circle.yml index 588f6243..c484553f 100644 --- a/circle.yml +++ b/circle.yml @@ -13,7 +13,7 @@ dependencies: test: override: - - docker run -d -p 8989:8989 lngarrett/plexpy + - docker run -d -p 8181:8181 lngarrett/plexpy - sleep 60 - curl http://localhost:8181 From e41fde7a25338107c9485d295ba1bc6cb8811c54 Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Tue, 8 Dec 2015 03:52:53 +0000 Subject: [PATCH 4/7] build badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac80b3a3..7b483311 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![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/docker-sonarr.svg?style=svg)](https://circleci.com/gh/lngarrett/plexpy) +[![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). From af8b863b0127fd1c23ff0f0a0138ad222874b915 Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Tue, 8 Dec 2015 03:58:53 +0000 Subject: [PATCH 5/7] push repo --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index c484553f..31977688 100644 --- a/circle.yml +++ b/circle.yml @@ -22,4 +22,4 @@ deployment: branch: master commands: - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS - - docker push lngarrett/docker-plexpy + - docker push lngarrett/plexpy From fa82cfd5ab5998d88ae252c26e38de913f541c14 Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Tue, 8 Dec 2015 04:06:11 +0000 Subject: [PATCH 6/7] run script --- docker_run.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docker_run.sh diff --git a/docker_run.sh b/docker_run.sh new file mode 100644 index 00000000..0bd78552 --- /dev/null +++ b/docker_run.sh @@ -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 From 3e33a7c376e73fad992b85ad1a9a91dcd3b8461b Mon Sep 17 00:00:00 2001 From: Logan Garrett Date: Tue, 8 Dec 2015 04:06:56 +0000 Subject: [PATCH 7/7] x perm --- docker_run.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 docker_run.sh diff --git a/docker_run.sh b/docker_run.sh old mode 100644 new mode 100755