mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
remove idonethis
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
0ab8c322be
commit
7b22735e75
|
@ -1,22 +0,0 @@
|
|||
FROM ruby:latest
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
# 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"]
|
|
@ -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 <<EOT >> /.idonethisrc
|
||||
username: $IDT_USERNAME
|
||||
password: $IDT_PASSWORD
|
||||
idonethis_address: $IDT_ADDRESS
|
||||
EOT
|
||||
}
|
||||
|
||||
main
|
||||
echo "Sending message: '$@'"
|
||||
idonethis "$@"
|
Loading…
Reference in New Issue
Block a user