Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
Merge pull request #5 from cloudfoundry-community/image-tag-split
Browse files Browse the repository at this point in the history
Fixed cfcommunity_logstash_image job with new split out of tagged blobs
  • Loading branch information
lnguyen committed Oct 26, 2015
2 parents b6bd458 + 78ce2ba commit f3233c9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions jobs/cfcommunity_logstash_image/templates/bin/install_ctl
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ case $1 in
# store pid in $PIDFILE
echo $$ > $PIDFILE

time docker \
--host unix:///var/vcap/sys/run/docker/docker.sock \
load -i /var/vcap/packages/logstash/cfcommunity_logstash.tgz
>>$LOG_DIR/$JOB_NAME.stdout.log \
2>>$LOG_DIR/$JOB_NAME.stderr.log
for image in /var/vcap/packages/logstash/*.tgz; do
echo "Loading docker image $image" >>$LOG_DIR/$JOB_NAME.stdout.log
time docker \
--host unix:///var/vcap/sys/run/docker/docker.sock \
load -i $image \
>>$LOG_DIR/$JOB_NAME.stdout.log \
2>>$LOG_DIR/$JOB_NAME.stderr.log
done

# do nothing forever
exec tail -f /dev/null
Expand Down

0 comments on commit f3233c9

Please sign in to comment.