Skip to content

Commit 7dc4a3a

Browse files
Gabriel MonroyMatthew Fisher
authored andcommitted
fix(user-data): support dynamic interface for seed-deis-registry
1 parent b8df76a commit 7dc4a3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contrib/coreos/user-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ coreos:
106106

107107
[Service]
108108
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'
109+
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'
110110

111111
[Install]
112112
WantedBy=multi-user.target

0 commit comments

Comments
 (0)