From e93e0f5d11fd0678810918a98261833aca3caa50 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Tue, 28 Feb 2017 09:20:18 -0600 Subject: [PATCH 1/3] Adding dockerfile --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bb53af9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM ubuntu:16.04 + +ENV VERSION 0.0.0 + +ENV BOTO_VERSION 2.46.1 +ENV CARBON_VERSION 0.9.15 +ENV GRAPHITE_VERSION 0.9.15 + +RUN apt-get update && \ + apt-get -y install python2.7 python-pip wget unzip && \ + wget -O /opt/whisper-backup-"$VERSION".zip https://github.com/Banno/whisper-backup/releases/download/"$VERSION"/whisper-backup-"$VERSION".zip && \ + cd /opt/ && \ + unzip -d whisper-backup whisper-backup-"$VERSION".zip && \ + rm whisper-backup-"$VERSION".zip && \ + apt-get purge -y wget unzip + +RUN pip install boto==2.38.0 && \ + pip install carbon==$CARBON_VERSION && \ + pip install graphite-web==$GRAPHITE_VERSION && \ + pip install whisper==$GRAPHITE_VERSION + +RUN cd /opt/whisper-backup && python setup.py install + +WORKDIR /opt/whisper-backup/whisperbackup + +ENTRYPOINT ["python", "whisperbackup.py"] From aae9e8ae22bd9aefa9999190126b33901e1d8e10 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Tue, 28 Feb 2017 09:50:35 -0600 Subject: [PATCH 2/3] docker: switch repo to jjneely --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bb53af9..513253c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ENV GRAPHITE_VERSION 0.9.15 RUN apt-get update && \ apt-get -y install python2.7 python-pip wget unzip && \ - wget -O /opt/whisper-backup-"$VERSION".zip https://github.com/Banno/whisper-backup/releases/download/"$VERSION"/whisper-backup-"$VERSION".zip && \ + wget -O /opt/whisper-backup-"$VERSION".zip https://github.com/jjneely/whisper-backup/releases/download/"$VERSION"/whisper-backup-"$VERSION".zip && \ cd /opt/ && \ unzip -d whisper-backup whisper-backup-"$VERSION".zip && \ rm whisper-backup-"$VERSION".zip && \ From 41c4e3a8e369be503a341b03638302aa2e39f652 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Tue, 28 Feb 2017 09:51:09 -0600 Subject: [PATCH 3/3] docker: set version to 0.1.2 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 513253c..877333f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu:16.04 -ENV VERSION 0.0.0 +ENV VERSION 0.1.2 ENV BOTO_VERSION 2.46.1 ENV CARBON_VERSION 0.9.15