2016-06-03 00:25:58 +00:00
|
|
|
# Copyright 2016 The Kubernetes Authors.
|
2016-02-03 07:11:37 +00:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2015-11-23 03:53:45 +00:00
|
|
|
FROM BASEIMAGE
|
2015-04-03 21:54:09 +00:00
|
|
|
|
2016-04-28 01:14:25 +00:00
|
|
|
# Create symlinks for each hyperkube server
|
2017-10-22 13:01:31 +00:00
|
|
|
# Also create symlinks to /usr/local/bin/ where the server image binaries live, so the hyperkube image may be
|
2017-02-09 19:46:00 +00:00
|
|
|
# used instead of gcr.io/google_containers/kube-* without any modifications.
|
2016-07-26 02:33:26 +00:00
|
|
|
# TODO: replace manual symlink creation with --make-symlink command once
|
|
|
|
# cross-building with qemu supports go binaries. See #28702
|
2016-05-16 21:28:24 +00:00
|
|
|
# RUN /hyperkube --make-symlinks
|
2016-07-26 02:33:26 +00:00
|
|
|
RUN ln -s /hyperkube /apiserver \
|
|
|
|
&& ln -s /hyperkube /controller-manager \
|
|
|
|
&& ln -s /hyperkube /kubectl \
|
|
|
|
&& ln -s /hyperkube /kubelet \
|
|
|
|
&& ln -s /hyperkube /proxy \
|
2017-02-09 19:46:00 +00:00
|
|
|
&& ln -s /hyperkube /scheduler \
|
2017-10-22 13:01:31 +00:00
|
|
|
&& ln -s /hyperkube /aggerator \
|
2017-02-09 19:46:00 +00:00
|
|
|
&& ln -s /hyperkube /usr/local/bin/kube-apiserver \
|
|
|
|
&& ln -s /hyperkube /usr/local/bin/kube-controller-manager \
|
|
|
|
&& ln -s /hyperkube /usr/local/bin/kubectl \
|
|
|
|
&& ln -s /hyperkube /usr/local/bin/kubelet \
|
|
|
|
&& ln -s /hyperkube /usr/local/bin/kube-proxy \
|
|
|
|
&& ln -s /hyperkube /usr/local/bin/kube-scheduler
|
2016-10-09 15:06:36 +00:00
|
|
|
|
|
|
|
# Copy the hyperkube binary
|
|
|
|
COPY hyperkube /hyperkube
|