mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
build-image fix for running integration-tests locally
Currently if developer tries to run integration tests locally, it would be failing due to missing /var/run/kubernetes inside cross container image. As tests are run by non-privileged user, this directory must be pre-created and made user writable at the time cross build/test container created.
This commit is contained in:
parent
a96f028208
commit
1aa85f5f2d
@ -21,6 +21,10 @@ RUN touch /kube-build-image
|
||||
# To run as non-root we sometimes need to rebuild go stdlib packages.
|
||||
RUN chmod -R a+rwx /usr/local/go/pkg ${K8S_PATCHED_GOROOT}/pkg
|
||||
|
||||
# For running integration tests /var/run/kubernetes is required
|
||||
# and should be writable by user
|
||||
RUN mkdir /var/run/kubernetes && chmod a+rwx /var/run/kubernetes
|
||||
|
||||
# The kubernetes source is expected to be mounted here. This will be the base
|
||||
# of operations.
|
||||
ENV HOME /go/src/k8s.io/kubernetes
|
||||
|
Loading…
Reference in New Issue
Block a user