Skip to content
Permalink
Browse files

initial add for instrumentation

  • Loading branch information
pcaskey committed Feb 2, 2017
1 parent 3509c70 commit ceb4a75f45048cf5dd570d3b11bc546ca1d3b01c
Showing with 23 additions and 0 deletions.
  1. +11 −0 Dockerfile
  2. +7 −0 container_files/bin/sendtierbeacon.sh
  3. +3 −0 container_files/bin/startcron.sh
  4. +2 −0 container_files/tier-crontab
@@ -44,6 +44,14 @@ ADD container_files/bin/onbuild.sh /opt/autoexec/bin/onbuild.sh
ADD container_files/bin/stub.sh /opt/autoexec/firstrun/stub.sh
ADD container_files/bin/stub.sh /opt/autoexec/onbuild/stub.sh

ADD container_files/tier-crontab /opt/tier/tier-crontab
RUN crontab /opt/tier/tier-crontab
ADD container_files/bin/startcron.sh /usr/bin/startcron.sh
RUN chmod +x /usr/bin/startcron.sh
ADD container_files/bin/sendtierbeacon.sh /usr/bin/sendtierbeacon.sh
RUN touch /var/log/cron.log


# Set default environment variables.
ENV HOME /opt/tier

@@ -52,3 +60,6 @@ RUN touch /tmp/firsttimerunning

# Define working directory.
WORKDIR /opt/tier


CMD /usr/bin/startcron.sh
@@ -0,0 +1,7 @@
#!/bin/sh
LOGHOST="cerif.org"
LOGPORT="5000"
LOGTEXT="TIERBEACON/TIER/1.0#IM=$IMAGENAME#IV=$VERSION#MT=$MAINTAINER#"
if [ -z "$TIER_BEACON_OPT_OUT" ]; then
`logger -n $LOGHOST -P $LOGPORT -t TIERBEACON $LOGTEXT`
fi
@@ -0,0 +1,3 @@
#!/bin/sh
cron
touch /var/log/cron.log
@@ -0,0 +1,2 @@
#send daily ping to TIER Central
0 0 * * * /usr/bin/sendtierbeacon.sh >> /var/log/cron.log 2>&1

0 comments on commit ceb4a75

Please sign in to comment.
You can’t perform that action at this time.