Skip to content

Commit 71fb3e6

Browse files
Gabriel MonroyMatthew Fisher
authored andcommitted
chore(builder): remove docker push debug prints
1 parent df11de0 commit 71fb3e6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

builder/templates/builder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ if __name__ == '__main__':
9595
# push the image, output to /dev/null
9696
print('-----> Pushing image to private registry')
9797
sys.stdout.flush(), sys.stderr.flush()
98-
p = subprocess.Popen('docker push {target_image}'.format(**locals()), shell=True)
99-
# stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w'))
98+
p = subprocess.Popen('docker push {target_image}'.format(**locals()), shell=True,
99+
stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w'))
100100
rc = p.wait()
101101
if rc != 0:
102102
raise Exception('Could not push Docker image')

registry/systemd/deis-registry.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ TimeoutStartSec=20m
66
ExecStartPre=/bin/sh -c "/usr/bin/docker history deis/registry >/dev/null || /usr/bin/docker pull deis/registry"
77
ExecStartPre=/bin/bash -c "/usr/bin/docker start deis-registry-data || /usr/bin/docker run --name deis-registry-data -v /data deis/data"
88
ExecStart=/bin/sh -c "IFACE=$(netstat -nr | grep ^0.0.0.0 | awk '{print $8}') && HOST_IP=$(/bin/ifconfig $IFACE | awk '/inet /{print $2}') && exec /usr/bin/docker run --name deis-registry -p 5000:5000 -e PUBLISH=5000 -e HOST=$HOST_IP --volumes-from deis-registry-data deis/registry"
9+
ExecStartPost=/bin/sh -c "IFACE=$(netstat -nr | grep ^0.0.0.0 | awk '{print $8}') && HOST_IP=$(/bin/ifconfig $IFACE | awk '/inet /{print $2}') && until cat </dev/null>/dev/tcp/$HOST_IP/5000; do sleep 1; done"
910
ExecStop=/usr/bin/docker rm -f deis-registry
1011

1112
[Install]

0 commit comments

Comments
 (0)