forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slack-15.0
: fix private repo git config in docker build
Signed-off-by: Tim Vaillancourt <[email protected]>
- Loading branch information
1 parent
e9875f2
commit 2639380
Showing
5 changed files
with
35 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 |
---|---|---|
|
@@ -15,10 +15,17 @@ ARG BUILD_GIT_BRANCH | |
# Allows docker builds to set the BUILD_GIT_REV | ||
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /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/ | ||
|
||
# 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 |
---|---|---|
|
@@ -15,10 +15,17 @@ ARG BUILD_GIT_BRANCH | |
# Allows docker builds to set the BUILD_GIT_REV | ||
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /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/ | ||
|
||
# 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 |
---|---|---|
|
@@ -15,10 +15,17 @@ ARG BUILD_GIT_BRANCH | |
# Allows docker builds to set the BUILD_GIT_REV | ||
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /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/ | ||
|
||
# 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 |
---|---|---|
|
@@ -29,10 +29,17 @@ ARG BUILD_GIT_BRANCH | |
# Allows docker builds to set the BUILD_GIT_REV | ||
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /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/ | ||
|
||
# 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 |
---|---|---|
|
@@ -29,10 +29,17 @@ ARG BUILD_GIT_BRANCH | |
# Allows docker builds to set the BUILD_GIT_REV | ||
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /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/ | ||
|
||
# Fix permissions | ||
RUN chown -R vitess:vitess /vt | ||
USER vitess | ||
|