forked from bgulla/apcupsd-influxdb-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
He who is brandon gulla
committed
Jul 8, 2018
1 parent
7a51eb2
commit 86ccbe4
Showing
3 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
group: edge | ||
services: | ||
- docker | ||
language: bash | ||
script: | ||
# prepare qemu | ||
- docker run --rm --privileged multiarch/qemu-user-static:register --reset | ||
# build image | ||
- docker build -t bgulla/apcupsd-influxdb . | ||
- > | ||
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | ||
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" | ||
docker push bgulla/apcupsd-influxdb | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM jfloff/alpine-python | ||
FROM python:2.7.15-alpine3.7 | ||
#FROM jfloff/alpine-python | ||
MAINTAINER Brandon <[email protected]> | ||
|
||
RUN apk add --no-cache apcupsd jq curl supervisor | ||
RUN apk add --no-cache apcupsd jq curl supervisor busybox bash | ||
COPY ./conf/requirements.txt /requirements.txt | ||
COPY ./conf/apcupsd.conf / | ||
COPY ./src/app.py / | ||
RUN pip install -r /requirements.txt | ||
COPY ./conf/supervisord.conf /supervisord.conf | ||
|
||
COPY ./src/app.py / | ||
|
||
CMD ["supervisord", "-n", "-c","/supervisord.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters