rsync git directories into kube-build
This commit is contained in:
@@ -36,6 +36,13 @@ ENV KUBE_OUTPUT_SUBPATH _output/dockerized
|
||||
# Pick up version stuff here as we don't copy our .git over.
|
||||
ENV KUBE_GIT_VERSION_FILE ${HOME}/.dockerized-kube-version-defs
|
||||
|
||||
# Add system-wide git user information
|
||||
RUN git config --system user.email "nobody@k8s.io" \
|
||||
&& git config --system user.name "kube-build-image"
|
||||
|
||||
# Fix permissions on gopath
|
||||
RUN chmod -R a+rwx $GOPATH
|
||||
|
||||
# Make log messages use the right timezone
|
||||
ADD localtime /etc/localtime
|
||||
RUN chmod a+r /etc/localtime
|
||||
|
@@ -77,7 +77,7 @@ port = 8730
|
||||
secrets file = ${SECRETS}
|
||||
read only = false
|
||||
path = ${VOLUME}
|
||||
filter = - /.make/ - /.git/ - /_tmp/
|
||||
filter = - /.make/ - /_tmp/
|
||||
EOF
|
||||
|
||||
exec /usr/bin/rsync --no-detach --daemon --config="${CONFFILE}" "$@"
|
||||
|
Reference in New Issue
Block a user