Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GLUTEN-7055][VL] Make ssh keys of gluten-vcpkg-builder configurable #7056

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions dev/vcpkg/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ RUN if ["$BUILDER_UID" != "0"]; then \
fi
USER ${BUILDER_UID}:${BUILDER_GID}

ARG SSH_PRV_KEY
ARG SSH_PUB_KEY
RUN mkdir -p ~/.ssh && \
chmod 0700 ~/.ssh
RUN if [[ -n "$SSH_PRV_KEY" ]] ; then \
echo "$SSH_PRV_KEY" > ~/.ssh/id_rsa && \
chmod 600 ~/.ssh/id_rsa && \
echo -e "Host *\n StrictHostKeyChecking no" > ~/.ssh/config && \
chmod 600 ~/.ssh/config; \
fi
RUN if [[ -n "$SSH_PUB_KEY" ]] ; then \
echo "$SSH_PUB_KEY" > ~/.ssh/id_rsa.pub && \
chmod 600 ~/.ssh/id_rsa.pub; \
fi

ENV VCPKG_BINARY_SOURCES=default
COPY docker/entrypoint.sh /entrypoint
ENTRYPOINT ["/entrypoint"]
Expand Down
Loading