mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Make sure rsync.sh is executable inside the build image
Also make sure /etc/localtime is readable Also move BUILD_IMAGE_VERSION to build-image/VERSION to be consistent with the way the cross-image works.
This commit is contained in:
		@@ -1 +0,0 @@
 | 
				
			|||||||
3
 | 
					 | 
				
			||||||
@@ -15,8 +15,6 @@
 | 
				
			|||||||
# This file creates a standard build environment for building Kubernetes
 | 
					# This file creates a standard build environment for building Kubernetes
 | 
				
			||||||
FROM gcr.io/google_containers/kube-cross:KUBE_BUILD_IMAGE_CROSS_TAG
 | 
					FROM gcr.io/google_containers/kube-cross:KUBE_BUILD_IMAGE_CROSS_TAG
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ADD localtime /etc/localtime
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Mark this as a kube-build container
 | 
					# Mark this as a kube-build container
 | 
				
			||||||
RUN touch /kube-build-image
 | 
					RUN touch /kube-build-image
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -34,6 +32,12 @@ ENV KUBE_OUTPUT_SUBPATH _output/dockerized
 | 
				
			|||||||
# Pick up version stuff here as we don't copy our .git over.
 | 
					# Pick up version stuff here as we don't copy our .git over.
 | 
				
			||||||
ENV KUBE_GIT_VERSION_FILE ${HOME}/.dockerized-kube-version-defs
 | 
					ENV KUBE_GIT_VERSION_FILE ${HOME}/.dockerized-kube-version-defs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Make log messages use the right timezone
 | 
				
			||||||
 | 
					ADD localtime /etc/localtime
 | 
				
			||||||
 | 
					RUN chmod a+r /etc/localtime
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Set up rsyncd
 | 
				
			||||||
ADD rsyncd.password /
 | 
					ADD rsyncd.password /
 | 
				
			||||||
RUN chmod a+r /rsyncd.password
 | 
					RUN chmod a+r /rsyncd.password
 | 
				
			||||||
ADD rsyncd.sh /
 | 
					ADD rsyncd.sh /
 | 
				
			||||||
 | 
					RUN chmod a+rx /rsyncd.sh
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								build/build-image/VERSION
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								build/build-image/VERSION
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					4
 | 
				
			||||||
@@ -49,7 +49,7 @@ readonly KUBE_BUILD_IMAGE_CROSS_TAG="$(cat ${KUBE_ROOT}/build/build-image/cross/
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# Increment/change this number if you change the build image (anything under
 | 
					# Increment/change this number if you change the build image (anything under
 | 
				
			||||||
# build/build-image) or change the set of volumes in the data container.
 | 
					# build/build-image) or change the set of volumes in the data container.
 | 
				
			||||||
readonly KUBE_BUILD_IMAGE_VERSION_BASE="$(cat ${KUBE_ROOT}/build/BUILD_IMAGE_VERSION)"
 | 
					readonly KUBE_BUILD_IMAGE_VERSION_BASE="$(cat ${KUBE_ROOT}/build/build-image/VERSION)"
 | 
				
			||||||
readonly KUBE_BUILD_IMAGE_VERSION="${KUBE_BUILD_IMAGE_VERSION_BASE}-${KUBE_BUILD_IMAGE_CROSS_TAG}"
 | 
					readonly KUBE_BUILD_IMAGE_VERSION="${KUBE_BUILD_IMAGE_VERSION_BASE}-${KUBE_BUILD_IMAGE_CROSS_TAG}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Here we map the output directories across both the local and remote _output
 | 
					# Here we map the output directories across both the local and remote _output
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user