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-15.0: fix private repo git config in docker build #367

Merged
merged 1 commit into from
May 23, 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.mariadb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions docker/base/Dockerfile.mariadb103
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions docker/base/Dockerfile.mysql80
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions docker/base/Dockerfile.percona57
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions docker/base/Dockerfile.percona80
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading