Skip to content

Instantly share code, notes, and snippets.

@tjdett
Last active October 7, 2016 02:18
Show Gist options
  • Save tjdett/ff317f86e503217579cc83af520eea31 to your computer and use it in GitHub Desktop.
Save tjdett/ff317f86e503217579cc83af520eea31 to your computer and use it in GitHub Desktop.
Very basic example of a sidekick app registering a rkt pod service
# 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