Last active
October 7, 2016 02:18
-
-
Save tjdett/ff317f86e503217579cc83af520eea31 to your computer and use it in GitHub Desktop.
Very basic example of a sidekick app registering a rkt pod service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PUTs IP as plain text to http://requestb.in/pimdumpi | |
sudo `which rkt` run --dns=8.8.8.8 --insecure-options=image \ | |
docker://nginx -- --- \ | |
docker://alpine:3.4 --exec /bin/sh -- -c \ | |
"apk update && apk add -u curl && while true; do ip -f inet addr show eth0 | grep -Eo 'inet [0-9\.]+' | cut -f2 -d' ' | curl -X POST -H 'Content-Type: text/plain' -d @- http://requestb.in/pimdumpi; sleep 60; done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment