Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. RUN clean-install wget bash netcat
  19. ADD on-start.sh /
  20. COPY peer-finder /
  21. # See README.md
  22. 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 && \
  23. 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
  24. ADD install.sh /
  25. RUN chmod -c 755 /install.sh /on-start.sh /peer-finder
  26. ENTRYPOINT ["/install.sh"]