forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slack-19.0
: fix docker base build + git private repo (#456)
Signed-off-by: Tim Vaillancourt <[email protected]>
- Loading branch information
1 parent
27199c5
commit 1298a0f
Showing
4 changed files
with
28 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 |
---|---|---|
|
@@ -32,9 +32,16 @@ ARG BUILD_GIT_REV | |
# Allows docker builds to set the BUILD_TIME | ||
ARG BUILD_TIME | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
COPY --chown=vitess:vitess . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
USER vitess | ||
|
||
# Build Vitess | ||
|
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 |
---|---|---|
|
@@ -32,9 +32,16 @@ ARG BUILD_GIT_REV | |
# Allows docker builds to set the BUILD_TIME | ||
ARG BUILD_TIME | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
COPY --chown=vitess:vitess . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
USER vitess | ||
|
||
# Build Vitess | ||
|
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 |
---|---|---|
|
@@ -32,10 +32,17 @@ ARG BUILD_GIT_REV | |
# Allows docker builds to set the BUILD_TIME | ||
ARG BUILD_TIME | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
COPY --chown=vitess:vitess . /vt/src/vitess.io/vitess | ||
|
||
USER vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
# Build Vitess | ||
RUN make build |
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 |
---|---|---|
|
@@ -32,9 +32,16 @@ ARG BUILD_GIT_REV | |
# Allows docker builds to set the BUILD_TIME | ||
ARG BUILD_TIME | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
COPY --chown=vitess:vitess . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
USER vitess | ||
|
||
# Build Vitess | ||
|