Dockerfile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. # TODO: get rid of bash dependency and switch to plain busybox.
  15. # The tar in busybox also doesn't seem to understand compression.
  16. FROM BASEIMAGE
  17. CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
  18. # TODO: just use standard redis when there is one for 3.2.0.
  19. RUN clean-install wget make gcc libc-dev bash
  20. # See README.md
  21. RUN wget -qO /redis-3.2.0.tar.gz http://download.redis.io/releases/redis-3.2.0.tar.gz && \
  22. tar -xzf /redis-3.2.0.tar.gz -C /tmp/ && rm /redis-3.2.0.tar.gz
  23. # Clean out existing deps before installation
  24. # see https://github.com/antirez/redis/issues/722
  25. RUN cd /tmp/redis-3.2.0 && make distclean && mkdir -p /redis && \
  26. make install INSTALL_BIN=/redis && \
  27. mv /tmp/redis-3.2.0/redis.conf /redis/redis.conf && \
  28. rm -rf /tmp/redis-3.2.0
  29. ADD on-start.sh /
  30. COPY peer-finder /
  31. ADD install.sh /
  32. RUN chmod -c 755 /install.sh /on-start.sh /peer-finder
  33. ENTRYPOINT ["/install.sh"]