github.com/quay/claircore@v1.5.28/rhel/dockerfile/testdata/Dockerfile-etcd-rhel7 (about) 1 FROM registry.stage.redhat.io/rhel7/rhel:7.9 2 3 ENV container=docker 4 5 LABEL com.redhat.component="etcd-container" \ 6 name="rhel7/etcd" \ 7 version="3.2.32" \ 8 summary="A highly-available key value store for shared configuration" \ 9 usage="etcd -help " \ 10 io.k8s.display-name="etcd" \ 11 io.openshift.tags="etcd" \ 12 description="etcd is a distributed reliable key-value store for the most critical data of a distributed system." \ 13 io.k8s.description="etcd is a distributed reliable key-value store for the most critical data of a distributed system." \ 14 io.openshift.expose-services="2379:tcp,2380:tcp" 15 16 RUN yum-config-manager --enable rhel-7-server-extras-rpms || : && yum -y install etcd hostname && yum clean all 17 18 LABEL install /usr/bin/docker run --rm \$OPT1 --privileged -v /:/host -e HOST=/host -e NAME=\$NAME -e IMAGE=\$IMAGE \$IMAGE \$OPT2 /usr/bin/install.sh \$OPT3 19 LABEL uninstall /usr/bin/docker run --rm \$OPT1 --privileged -v /:/host -e HOST=/host -e NAME=\$NAME -e IMAGE=\$IMAGE \$IMAGE \$OPT2 /usr/bin/uninstall.sh \$OPT3 20 LABEL run /usr/bin/docker run -d \$OPT1 -p 4001:4001 -p 7001:7001 -p 2379:2379 -p 2380:2380 --name \$NAME \$IMAGE \$OPT2 \$OPT3 21 22 ADD etcd_container_template.service /etc/systemd/system/etcd_container_template.service 23 ADD etcd-env.sh /usr/bin/etcd-env.sh 24 ADD install.sh /usr/bin/install.sh 25 ADD uninstall.sh /usr/bin/uninstall.sh 26 27 EXPOSE 4001 7001 2379 2380 28 29 ADD tmpfiles.template config.json.template service.template manifest.json /exports/ 30 31 CMD ["/usr/bin/etcd-env.sh", "/usr/bin/etcd"] 32