Some of the repetitive violations were suppressed.
728B; Unix Shell | 2019-02-15 10:15:10+01 | SLOC 15
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={{ canal_cert_dir }}/ca_cert.crt \
6
-e ETCD_CERT_FILE={{ canal_cert_dir }}/cert.crt \
7
-e ETCD_KEY_FILE={{ canal_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 {{ canal_cert_dir }}:{{ canal_cert_dir }}:ro \
12
-v {{ canal_policy_dir }}:{{ canal_policy_dir }}:ro \
13 4
--memory={{ calicoctl_memory_limit|regex_replace('Mi', 'M') }} --cpu-shares={{ calicoctl_cpu_limit|regex_replace('m', '') }} \
14
{{ calicoctl_image_repo }}:{{ calicoctl_image_tag}} \
15
"$@"