k8s.io/kubernetes@v1.29.3/test/images/pets/zookeeper-installer/Dockerfile (about) 1 # Copyright 2016 The Kubernetes Authors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 # TODO: get rid of bash dependency and switch to plain busybox. 16 # The tar in busybox also doesn't seem to understand compression. 17 ARG BASEIMAGE 18 FROM $BASEIMAGE 19 20 CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/ 21 22 RUN clean-install wget bash netcat 23 24 ADD on-start.sh / 25 26 COPY peer-finder / 27 28 # See README.md 29 RUN wget -q -O /zookeeper-3.5.0-alpha.tar.gz http://archive.apache.org/dist/zookeeper/zookeeper-3.5.0-alpha/zookeeper-3.5.0-alpha.tar.gz && \ 30 tar -xzf /zookeeper-3.5.0-alpha.tar.gz -C /tmp/ && mv /tmp/zookeeper-3.5.0-alpha /zookeeper && rm /zookeeper-3.5.0-alpha.tar.gz 31 32 ADD install.sh / 33 RUN chmod -c 755 /install.sh /on-start.sh /peer-finder 34 ENTRYPOINT ["/install.sh"]