From 7b22735e750fac056cca7fc8dec24194d6ba1a0b Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Tue, 5 Apr 2016 17:09:17 -0700 Subject: [PATCH] remove idonethis Signed-off-by: Jess Frazelle --- idonethis/Dockerfile | 22 ---------------------- idonethis/main.sh | 33 --------------------------------- 2 files changed, 55 deletions(-) delete mode 100644 idonethis/Dockerfile delete mode 100755 idonethis/main.sh diff --git a/idonethis/Dockerfile b/idonethis/Dockerfile deleted file mode 100644 index 867069c..0000000 --- a/idonethis/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -FROM ruby:latest -MAINTAINER Jessica Frazelle - -# update gems -RUN gem update --system \ - && gem update \ - && gem install syck - -# install idonethis from git -RUN git clone https://github.com/influitive/idonethis.git /idonethis \ - && cd /idonethis \ - && rake build \ - && gem install /idonethis/pkg/idonethis-0.1.0.gem \ - && rm -rf /idonethis \ - && { \ - echo '---'; \ - echo 'sender: GmailSender'; \ - } > /root/.idonethisrc - -COPY main.sh /main.sh - -ENTRYPOINT ["/main.sh"] diff --git a/idonethis/main.sh b/idonethis/main.sh deleted file mode 100755 index e4d36f2..0000000 --- a/idonethis/main.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# main entry point to run idonethis - -function checkvars() { - if [[ -z "${IDT_USERNAME}" ]]; then - echo "ERROR: The environment variable IDT_USERNAME is not set." - exit 1 - fi - - if [[ -z "${IDT_PASSWORD}" ]]; then - echo "ERROR: The environment variable IDT_PASSWORD is not set." - exit 1 - fi - - if [[ -z "${IDT_ADDRESS}" ]]; then - echo "ERROR: The environment variable IDT_ADDRESS is not set." - exit 1 - fi -} - -function main() { - checkvars - - cat <> /.idonethisrc -username: $IDT_USERNAME -password: $IDT_PASSWORD -idonethis_address: $IDT_ADDRESS -EOT -} - -main -echo "Sending message: '$@'" -idonethis "$@" \ No newline at end of file