Skip to content

Commit

Permalink
Allow an ansible.cfg from k-c to be passed into kayobe image build
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bull committed Nov 3, 2023
1 parent 8ac76ce commit fd30a0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/kayobe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ RUN chmod 600 /stack/.ssh/config
# Copy custom binaries into image. The wildcard worksaround the check on the parent directory existing.
COPY .automation/utils/kayobe-automation-activate .automation.conf/docker*/kayobe/bin/* /usr/local/bin

# Allow an ansible.cfg in kayobe-config to be used for control host bootrap
ARG ANSIBLE_CONFIG=/stack/kayobe-automation-env/src/kayobe-config/etc/kayobe/ansible.cfg

# Control host bootsrap without leaving kayobe-config in the image
RUN --mount=type=ssh,uid=1000 --mount=type=tmpfs,target=/tmp/src --mount=type=bind,source=.,target=/src sudo cp -rfp /src /tmp/ && \
sudo chown -Rf stack:stack /tmp/src && \
Expand Down

0 comments on commit fd30a0a

Please sign in to comment.