We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8df76a commit 7dc4a3aCopy full SHA for 7dc4a3a
1 file changed
contrib/coreos/user-data
@@ -106,7 +106,7 @@ coreos:
106
107
[Service]
108
Type=oneshot
109
- ExecStart=/bin/sh -c 'docker pull deis/slugrunner:latest && docker tag deis/slugrunner 172.17.8.100:5000/deis/slugrunner && docker push 172.17.8.100:5000/deis/slugrunner'
+ ExecStart=/bin/sh -c "IFACE=$(netstat -nr | grep ^0.0.0.0 | awk '{print $8}') && HOST_IP=$(/bin/ifconfig $IFACE | awk '/inet /{print $2}') && docker pull deis/slugrunner:latest && docker tag deis/slugrunner $HOST_IP:5000/deis/slugrunner && docker push $HOST_IP:5000/deis/slugrunner'
110
111
[Install]
112
WantedBy=multi-user.target
0 commit comments