Some of the repetitive violations were suppressed.
722B; Unix Shell | 2019-02-15 10:15:10+01 | SLOC 21
1
#!/bin/bash
2 4
{{ docker_bin_dir }}/docker run \
3
  --restart=on-failure:5 \
4
  --env-file=/etc/etcd-events.env \
5
  --net=host \
6
  -v /etc/ssl/certs:/etc/ssl/certs:ro \
7 8
  -v {{ etcd_cert_dir }}:{{ etcd_cert_dir }}:ro \
8
  -v {{ etcd_events_data_dir }}:{{ etcd_events_data_dir }}:rw \
9
  {% if etcd_memory_limit is defined %}
10 4
  --memory={{ etcd_memory_limit|regex_replace('Mi', 'M') }} \
11
  {% endif %}
12
  {% if etcd_cpu_limit is defined %}
13
  --cpu-shares={{ etcd_cpu_limit|regex_replace('m', '') }} \
14
  {% endif %}
15
  {% if etcd_blkio_weight is defined %}
16
  --blkio-weight={{ etcd_blkio_weight }} \
17
  {% endif %}
18
  --name={{ etcd_member_name }}-events \
19
  {{ etcd_image_repo }}:{{ etcd_image_tag }} \
20
  /usr/local/bin/etcd \
21
  "$@"