k8s.io/kubernetes@v1.29.3/test/images/pets/redis-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  # TODO: just use standard redis when there is one for 3.2.0.
    23  RUN clean-install wget make gcc libc-dev bash
    24  
    25  # See README.md
    26  RUN wget -qO /redis-3.2.0.tar.gz http://download.redis.io/releases/redis-3.2.0.tar.gz && \
    27      tar -xzf /redis-3.2.0.tar.gz -C /tmp/ && rm /redis-3.2.0.tar.gz
    28  
    29  # Clean out existing deps before installation
    30  # see https://github.com/antirez/redis/issues/722
    31  RUN cd /tmp/redis-3.2.0 && make distclean && mkdir -p /redis && \
    32      make install INSTALL_BIN=/redis && \
    33      mv /tmp/redis-3.2.0/redis.conf /redis/redis.conf && \
    34      rm -rf /tmp/redis-3.2.0
    35  
    36  ADD on-start.sh /
    37  
    38  COPY peer-finder /
    39  ADD install.sh /
    40  RUN chmod -c 755 /install.sh /on-start.sh /peer-finder
    41  ENTRYPOINT ["/install.sh"]