"Fossies" - the Fresh Open Source Software Archive

Member "kubernetes-1.17.12/build/build-image/Dockerfile" (16 Sep 2020, 1876 Bytes) of package /linux/misc/kubernetes-1.17.12.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Dockerfile": 1.18.8_vs_1.19.0.

    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 # This file creates a standard build environment for building Kubernetes
   16 FROM us.gcr.io/k8s-artifacts-prod/build-image/kube-cross:KUBE_BUILD_IMAGE_CROSS_TAG
   17 
   18 # Mark this as a kube-build container
   19 RUN touch /kube-build-image
   20 
   21 # To run as non-root we sometimes need to rebuild go stdlib packages.
   22 RUN chmod -R a+rwx /usr/local/go/pkg
   23 
   24 # For running integration tests /var/run/kubernetes is required
   25 # and should be writable by user
   26 RUN mkdir /var/run/kubernetes && chmod a+rwx /var/run/kubernetes
   27 
   28 # The kubernetes source is expected to be mounted here.  This will be the base
   29 # of operations.
   30 ENV HOME /go/src/k8s.io/kubernetes
   31 WORKDIR ${HOME}
   32 
   33 # Make output from the dockerized build go someplace else
   34 ENV KUBE_OUTPUT_SUBPATH _output/dockerized
   35 
   36 # Pick up version stuff here as we don't copy our .git over.
   37 ENV KUBE_GIT_VERSION_FILE ${HOME}/.dockerized-kube-version-defs
   38 
   39 # Add system-wide git user information
   40 RUN git config --system user.email "nobody@k8s.io" \
   41   && git config --system user.name "kube-build-image"
   42 
   43 # Fix permissions on gopath
   44 RUN chmod -R a+rwx $GOPATH
   45 
   46 # Make log messages use the right timezone
   47 ADD localtime /etc/localtime
   48 RUN chmod a+r /etc/localtime
   49 
   50 # Set up rsyncd
   51 ADD rsyncd.password /
   52 RUN chmod a+r /rsyncd.password
   53 ADD rsyncd.sh /
   54 RUN chmod a+rx /rsyncd.sh