Change calicoctl deployment to use container

Improves upgradability of calicoctl by leveraging docker tags.
This commit is contained in:
Matthew Mosesohn
2016-07-04 18:16:18 +03:00
parent 9777b3c177
commit baf80b7d7e
6 changed files with 21 additions and 39 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
/usr/bin/docker run --privileged --rm \
--net=host -e ETCD_AUTHORITY=127.0.0.1:2379 \
-v /usr/bin/docker:/usr/bin/docker \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/calico:/var/run/calico \
{{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
$@