Skip to content

Commit

Permalink
Fix issue generating manifests due to Docker perms
Browse files Browse the repository at this point in the history
This patch fixes an issue with generating manifests using the manifests
image due to Docker permissions.
  • Loading branch information
akutz committed Jul 24, 2019
1 parent 127436f commit 56a5822
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ With the above environment variable file it is now possible to generate the mani

```shell
$ docker run --rm \
--user "$(id -u):$(id -g)" \
-v "$(pwd)/management-cluster":/out \
-v "$(pwd)/envvars.txt":/out/envvars.txt:ro \
gcr.io/cluster-api-provider-vsphere/release/manifests:latest \
Expand Down Expand Up @@ -142,6 +143,7 @@ Using the same Docker command as above, generate resources for a new cluster, th

```shell
docker run --rm \
--user "$(id -u):$(id -g)" \
-v "$(pwd)/workload-cluster-1":/out \
-v "$(pwd)/envvars.txt":/out/envvars.txt:ro \
gcr.io/cluster-api-provider-vsphere/release/manifests:latest \
Expand Down
3 changes: 3 additions & 0 deletions hack/tools/generate-yaml/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ COPY ./vendor/sigs.k8s.io/cluster-api/config ./vendor/sigs.k8s.io/cluster-api/co
# Copy in the examples directory.
COPY ./cmd/clusterctl/examples/vsphere/*.template ./cmd/clusterctl/examples/vsphere/

# Ensure all the directories in the /build directory are writeable.
RUN find . -type d -exec chmod 0777 \{\} \;

# This build arg specifies the value of the -m flag for generate-yaml.sh, the
# CAPV manager image inserted into the generated provider components.
ARG CAPV_MANAGER_IMAGE=gcr.io/cnx-cluster-api/vsphere-cluster-api-provider:latest
Expand Down

0 comments on commit 56a5822

Please sign in to comment.