Dockerfile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2017 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. FROM BASEIMAGE
  15. # TODO(#69896): deprecate the shortened aliases in /
  16. RUN ln -s /hyperkube /apiserver \
  17. && ln -s /hyperkube /cloud-controller-manager \
  18. && ln -s /hyperkube /controller-manager \
  19. && ln -s /hyperkube /kubectl \
  20. && ln -s /hyperkube /kubelet \
  21. && ln -s /hyperkube /proxy \
  22. && ln -s /hyperkube /scheduler \
  23. && ln -s /hyperkube /usr/local/bin/cloud-controller-manager \
  24. && ln -s /hyperkube /usr/local/bin/kube-apiserver \
  25. && ln -s /hyperkube /usr/local/bin/kube-controller-manager \
  26. && ln -s /hyperkube /usr/local/bin/kube-proxy \
  27. && ln -s /hyperkube /usr/local/bin/kube-scheduler \
  28. && ln -s /hyperkube /usr/local/bin/kubectl \
  29. && ln -s /hyperkube /usr/local/bin/kubelet
  30. RUN echo CACHEBUST>/dev/null && clean-install \
  31. bash
  32. # The samba-common, cifs-utils, and nfs-common packages depend on
  33. # ucf, which itself depends on /bin/bash.
  34. RUN echo "dash dash/sh boolean false" | debconf-set-selections
  35. RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
  36. RUN echo CACHEBUST>/dev/null && clean-install \
  37. ca-certificates \
  38. ceph-common \
  39. cifs-utils \
  40. conntrack \
  41. e2fsprogs \
  42. xfsprogs \
  43. ebtables \
  44. ethtool \
  45. git \
  46. glusterfs-client \
  47. iptables \
  48. ipset \
  49. jq \
  50. kmod \
  51. openssh-client \
  52. netbase \
  53. nfs-common \
  54. socat \
  55. udev \
  56. util-linux
  57. COPY cni-bin/bin /opt/cni/bin