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

slack-19.0: fix docker base build + git private repo #456

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/

USER vitess

# Build Vitess
Expand Down
7 changes: 7 additions & 0 deletions docker/base/Dockerfile.mysql57
Original file line number Diff line number Diff line change
Expand Up @@ -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://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/

USER vitess

# Build Vitess
Expand Down
7 changes: 7 additions & 0 deletions docker/base/Dockerfile.percona57
Original file line number Diff line number Diff line change
Expand Up @@ -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://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/

# Build Vitess
RUN make build
7 changes: 7 additions & 0 deletions docker/base/Dockerfile.percona80
Original file line number Diff line number Diff line change
Expand Up @@ -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://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/

USER vitess

# Build Vitess
Expand Down
Loading