Some of the repetitive violations were suppressed.
679B; Unix Shell | 2019-02-15 10:15:10+01 | SLOC 14
1
#!/bin/bash
2 4
{{ docker_bin_dir }}/docker run -i --privileged --rm \
3
--net=host --pid=host \
4 4
-e ETCD_ENDPOINTS={{ etcd_access_addresses }} \
5 4
-e ETCD_CA_CERT_FILE={{ calico_cert_dir }}/ca_cert.crt \
6
-e ETCD_CERT_FILE={{ calico_cert_dir }}/cert.crt \
7
-e ETCD_KEY_FILE={{ calico_cert_dir }}/key.pem \
8
-v {{ docker_bin_dir }}/docker:{{ docker_bin_dir }}/docker \
9
-v /var/run/docker.sock:/var/run/docker.sock \
10
-v /var/run/calico:/var/run/calico \
11
-v {{ calico_cert_dir }}:{{ calico_cert_dir }}:ro \
12 4
--memory={{ calicoctl_memory_limit|regex_replace('Mi', 'M') }} --cpu-shares={{ calicoctl_cpu_limit|regex_replace('m', '') }} \
13
{{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
14
"$@"