-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #464 from akutz/bugfix/portable-yaml-gen
Fixes YAML generation issues with Docker
- Loading branch information
Showing
3 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ FROM ${BASE_IMAGE} | |
LABEL "maintainer" "Andrew Kutz <[email protected]>" | ||
|
||
# Run things out of the /build directory. | ||
ENV BUILDDIR /build | ||
WORKDIR /build | ||
|
||
# Copy in the hack tooling. | ||
|
@@ -40,7 +41,11 @@ RUN find . -type d -exec chmod 0777 \{\} \; | |
ARG CAPV_MANAGER_IMAGE=gcr.io/cluster-api-provider-vsphere/ci/manager:latest | ||
ENV CAPV_MANAGER_IMAGE=${CAPV_MANAGER_IMAGE} | ||
|
||
# The YAML is always written to the /out directory. Mount the volumes there. | ||
ENV OUT_DIR /out | ||
# Change the working directory to /. | ||
ENV WORKDIR /out | ||
WORKDIR /out | ||
|
||
ENTRYPOINT [ "./hack/generate-yaml.sh" ] | ||
# Indicate that this is being execute in a container. | ||
ENV DOCKER_ENABLED 1 | ||
|
||
ENTRYPOINT [ "/build/hack/generate-yaml.sh" ] |