-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare release docker image for fetching
- Loading branch information
Mahmood Ali
committed
Jul 29, 2021
1 parent
bf3d8a3
commit 47b0a5c
Showing
1 changed file
with
9 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,5 +42,14 @@ ENV GOPATH="/opt/gopath" \ | |
|
||
RUN mkdir -p /opt/gopath/src/github.com/hashicorp/nomad | ||
RUN mkdir -p /home/vagrant/bin \ | ||
&& mkdir -p /home/vagrant/bin /home/vagrant/.ssh \ | ||
&& git config --global user.email "[email protected]" \ | ||
&& git config --global user.name "Nomad Release Bot" | ||
|
||
## Prepare vagrant user for private github.com deps fetching | ||
RUN git config --global url."ssh://[email protected]".insteadOf "https://github.com" || true | ||
RUN echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' > /home/vagrant/.ssh/known_hosts | ||
|
||
ARG SSH_KEY | ||
RUN echo "$SSH_KEY" > /home/vagrant/.ssh/id_rsa \ | ||
&& chmod 600 /home/vagrant/.ssh/id_rsa |