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

Add mirrors for building in enterprise environments #11854

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions datahub-web-react/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ node {

}

yarnSetup() {
// Base URL for npm registry (set npmRegistryBaseUrl if you have a mirror).
if (project.hasProperty('npmRegistryBaseUrl')) {
npmRegistryBaseUrl = project.getProperty('npmRegistryBaseUrl')
args.addAll(['--registry', npmRegistryBaseUrl])
}
}

/*
Wrappers around Yarn Tasks.
*/
Expand Down
3 changes: 3 additions & 0 deletions docker/datahub-gms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ ARG APP_ENV=prod
ARG ALPINE_REPO_URL=http://dl-cdn.alpinelinux.org/alpine
ARG GITHUB_REPO_URL=https://github.com
ARG MAVEN_CENTRAL_REPO_URL=https://repo1.maven.org/maven2
ARG GOPROXY_URL=https://proxy.golang.org,direct

FROM golang:1-alpine3.20 AS binary

# Re-declaring arg from above to make it available in this stage (will inherit default value)
ARG ALPINE_REPO_URL
ARG GOPROXY_URL

ENV DOCKERIZE_VERSION=v0.6.1
ENV GOPROXY=${GOPROXY_URL}
WORKDIR /go/src/github.com/jwilder

# Optionally set corporate mirror for apk
Expand Down
3 changes: 3 additions & 0 deletions docker/datahub-mae-consumer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ ARG APP_ENV=prod
ARG ALPINE_REPO_URL=http://dl-cdn.alpinelinux.org/alpine
ARG GITHUB_REPO_URL=https://github.com
ARG MAVEN_CENTRAL_REPO_URL=https://repo1.maven.org/maven2
ARG GOPROXY_URL=https://proxy.golang.org,direct

FROM golang:1-alpine3.20 AS binary

# Re-declaring arg from above to make it available in this stage (will inherit default value)
ARG ALPINE_REPO_URL
ARG GOPROXY_URL

ENV DOCKERIZE_VERSION=v0.6.1
ENV GOPROXY=${GOPROXY_URL}
WORKDIR /go/src/github.com/jwilder

# Optionally set corporate mirror for apk
Expand Down
3 changes: 3 additions & 0 deletions docker/datahub-mce-consumer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ ARG APP_ENV=prod
ARG ALPINE_REPO_URL=http://dl-cdn.alpinelinux.org/alpine
ARG GITHUB_REPO_URL=https://github.com
ARG MAVEN_CENTRAL_REPO_URL=https://repo1.maven.org/maven2
ARG GOPROXY_URL=https://proxy.golang.org,direct

FROM golang:1-alpine3.20 AS binary

# Re-declaring arg from above to make it available in this stage (will inherit default value)
ARG ALPINE_REPO_URL
ARG GOPROXY_URL

ENV DOCKERIZE_VERSION=v0.6.1
ENV GOPROXY=${GOPROXY_URL}
WORKDIR /go/src/github.com/jwilder

# Optionally set corporate mirror for apk
Expand Down
Loading