-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into preflight_add_update
- Loading branch information
Showing
2,440 changed files
with
427,399 additions
and
94,965 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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1 +1 @@ | ||
* @jewzaam @bennerv @hawkowl @rogbas @petrkotas @jharrington22 @cblecker @cadenmarchese @ulrichschlueter @s-amann @SudoBrendan @Shivkumar13 @yjst2012 @jaitaiwan @anshulvermapatel @hlipsig @dofinn | ||
* @jewzaam @bennerv @hawkowl @rogbas @petrkotas @jharrington22 @cblecker @cadenmarchese @ulrichschlueter @s-amann @SudoBrendan @Shivkumar13 @yjst2012 @jaitaiwan @anshulvermapatel @hlipsig @tiguelu |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# Uses a multi-stage container build to build the RP & E2E components. | ||
# | ||
ARG REGISTRY | ||
FROM ${REGISTRY}/ubi8/go-toolset:1.18.10 AS builder | ||
ENV GOOS=linux \ | ||
GOPATH=/go/ | ||
WORKDIR ${GOPATH}/src/github.com/Azure/ARO-RP | ||
FROM ${REGISTRY}/ubi8/go-toolset:1.20.12-5 AS builder | ||
|
||
USER root | ||
COPY . ${GOPATH}/src/github.com/Azure/ARO-RP/ | ||
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make e2e.test e2etools | ||
ENV GOPATH=/root/go | ||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
COPY . /app | ||
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make validate-fips && make e2e.test e2etools | ||
|
||
FROM ${REGISTRY}/ubi8/ubi-minimal | ||
RUN microdnf update && microdnf clean all | ||
COPY --from=builder /go/src/github.com/Azure/ARO-RP/aro /go/src/github.com/Azure/ARO-RP/e2e.test /go/src/github.com/Azure/ARO-RP/db /go/src/github.com/Azure/ARO-RP/cluster /go/src/github.com/Azure/ARO-RP/portalauth /go/src/github.com/Azure/ARO-RP/jq /usr/local/bin/ | ||
COPY --from=builder /app/aro /app/e2e.test /app/db /app/cluster /app/portalauth /app/jq /usr/local/bin/ | ||
ENTRYPOINT ["aro"] | ||
EXPOSE 2222/tcp 8080/tcp 8443/tcp 8444/tcp 8445/tcp | ||
USER 1000 |
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# Uses a multi-stage container build to build the RP. | ||
# | ||
ARG REGISTRY | ||
FROM ${REGISTRY}/ubi8/go-toolset:1.18.10 AS builder | ||
ENV GOOS=linux \ | ||
GOPATH=/go/ | ||
WORKDIR ${GOPATH}/src/github.com/Azure/ARO-RP | ||
FROM ${REGISTRY}/ubi8/go-toolset:1.20.12-5 AS builder | ||
|
||
USER root | ||
COPY . ${GOPATH}/src/github.com/Azure/ARO-RP/ | ||
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make e2e.test | ||
ENV GOPATH=/root/go | ||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
COPY . /app | ||
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make validate-fips && make e2e.test | ||
|
||
FROM ${REGISTRY}/ubi8/ubi-minimal | ||
RUN microdnf update && microdnf clean all | ||
COPY --from=builder /go/src/github.com/Azure/ARO-RP/aro /go/src/github.com/Azure/ARO-RP/e2e.test /usr/local/bin/ | ||
COPY --from=builder /app/aro /app/e2e.test /usr/local/bin/ | ||
ENTRYPOINT ["aro"] | ||
EXPOSE 2222/tcp 8080/tcp 8443/tcp 8444/tcp 8445/tcp | ||
USER 1000 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
ARG REGISTRY | ||
ARG VERSION | ||
|
||
############################################################################### | ||
# Stage 1: Build the SRE Portal Assets | ||
# builder is responsible for all compilation and validation of the RP | ||
############################################################################### | ||
FROM ${REGISTRY}/ubi8/nodejs-16 as portal-build | ||
WORKDIR /build/portal/v2 | ||
USER root | ||
|
||
# Copying package files and installing dependencies | ||
COPY portal/v2/package*.json ./ | ||
RUN npm ci | ||
RUN npm audit --omit=dev # Run audit without dev dependencies | ||
|
||
# Copying the rest of the source and build | ||
COPY --chown=root:root portal/v2/ ./ | ||
RUN npm run lint && npm run build | ||
|
||
############################################################################### | ||
# Stage 2: Compile the Golang RP code | ||
############################################################################### | ||
FROM ${REGISTRY}/ubi8/go-toolset:1.20.12-5 AS builder | ||
USER root | ||
WORKDIR /app | ||
|
||
# golang config and build steps | ||
ENV GOPATH=/root/go | ||
ENV GOFLAGS="-tags=containers_image_openpgp,exclude_graphdriver_btrfs,exclude_graphdriver_devicemapper" | ||
|
||
# Install golangci-lint and verify | ||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v1.56.2 && \ | ||
golangci-lint --version || (echo "golangci-lint not found" && exit 1) | ||
|
||
# Copy dependencies and source files | ||
COPY go.mod go.sum ./ | ||
COPY vendor vendor | ||
COPY swagger swagger | ||
COPY .golangci.yml ./ | ||
COPY hack hack | ||
COPY cmd cmd | ||
COPY pkg pkg | ||
COPY test test | ||
|
||
# Ensure JS assets are available before generating Go code | ||
COPY --from=portal-build /build/pkg/portal/assets/v2/build /app/pkg/portal/assets/v2/build | ||
|
||
# Lint, generate, build, and test | ||
RUN golangci-lint run --verbose | ||
RUN go generate ./... | ||
RUN go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=${VERSION}" ./cmd/aro | ||
RUN go test ./test/e2e/... -tags e2e,codec.safe -c -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=${VERSION}" -o e2e.test | ||
|
||
# Additional tests | ||
RUN ARO_RUN_PKI_TESTS=nope go run gotest.tools/[email protected] --format pkgname --junitfile report.xml -- -coverprofile=cover.out ./... | ||
RUN hack/fips/validate-fips.sh ./aro | ||
|
||
############################################################################### | ||
# Stage 3: final is our slim image with minimal layers and tools | ||
############################################################################### | ||
FROM ${REGISTRY}/ubi8/ubi-minimal AS final | ||
RUN microdnf update && microdnf clean all | ||
COPY --from=builder /app/aro /app/e2e.test /usr/local/bin/ | ||
ENTRYPOINT ["aro"] | ||
EXPOSE 2222/tcp 8080/tcp 8443/tcp 8444/tcp 8445/tcp | ||
USER 1000 |
Oops, something went wrong.