-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run local development and PR E2E in podman (#2817)
Runs local development and PR E2E in podman containers, rather than using the inbuilt installer. --------- Co-authored-by: Jeremy Facchetti <[email protected]>
- Loading branch information
1 parent
6cfcd6e
commit 06b565a
Showing
1,361 changed files
with
195,782 additions
and
1,540 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
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ TAG ?= $(shell git describe --exact-match 2>/dev/null) | |
COMMIT = $(shell git rev-parse --short=7 HEAD)$(shell [[ $$(git status --porcelain) = "" ]] || echo -dirty) | ||
ARO_IMAGE_BASE = ${RP_IMAGE_ACR}.azurecr.io/aro | ||
E2E_FLAGS ?= -test.v --ginkgo.v --ginkgo.timeout 180m --ginkgo.flake-attempts=2 --ginkgo.junit-report=e2e-report.xml | ||
GO_FLAGS ?= -tags=aro,containers_image_openpgp,exclude_graphdriver_btrfs,exclude_graphdriver_devicemapper | ||
|
||
export GOFLAGS=$(GO_FLAGS) | ||
|
||
# fluentbit version must also be updated in RP code, see pkg/util/version/const.go | ||
MARINER_VERSION = 20230321 | ||
|
@@ -47,13 +50,13 @@ endif | |
endif | ||
|
||
build-all: | ||
go build -tags aro,containers_image_openpgp ./... | ||
go build ./... | ||
|
||
aro: check-release generate | ||
go build -tags aro,containers_image_openpgp,codec.safe -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro | ||
go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro | ||
|
||
runlocal-rp: | ||
go run -tags aro,containers_image_openpgp -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro rp | ||
go run -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro rp | ||
|
||
az: pyenv | ||
. pyenv/bin/activate && \ | ||
|
@@ -74,7 +77,7 @@ client: generate | |
# TODO: hard coding dev-config.yaml is clunky; it is also probably convenient to | ||
# override COMMIT. | ||
deploy: | ||
go run -tags aro,containers_image_openpgp -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro deploy dev-config.yaml ${LOCATION} | ||
go run -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro deploy dev-config.yaml ${LOCATION} | ||
|
||
dev-config.yaml: | ||
go run ./hack/gendevconfig >dev-config.yaml | ||
|
@@ -146,7 +149,7 @@ proxy: | |
CGO_ENABLED=0 go build -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./hack/proxy | ||
|
||
run-portal: | ||
go run -tags aro,containers_image_openpgp -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro portal | ||
go run -ldflags "-X github.com/Azure/ARO-RP/pkg/util/version.GitCommit=$(VERSION)" ./cmd/aro portal | ||
|
||
build-portal: | ||
cd portal/v1 && npm install && npm run build && cd ../v2 && npm install && npm run build | ||
|
@@ -209,10 +212,10 @@ validate-fips: | |
hack/fips/validate-fips.sh | ||
|
||
unit-test-go: | ||
go run gotest.tools/[email protected] --format pkgname --junitfile report.xml -- -tags=aro,containers_image_openpgp -coverprofile=cover.out ./... | ||
go run gotest.tools/[email protected] --format pkgname --junitfile report.xml -- -coverprofile=cover.out ./... | ||
|
||
unit-test-go-coverpkg: | ||
go run gotest.tools/[email protected] --format pkgname --junitfile report.xml -- -tags=aro,containers_image_openpgp -coverpkg=./... -coverprofile=cover_coverpkg.out ./... | ||
go run gotest.tools/[email protected] --format pkgname --junitfile report.xml -- -coverpkg=./... -coverprofile=cover_coverpkg.out ./... | ||
|
||
lint-go: | ||
hack/lint-go.sh | ||
|
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
Oops, something went wrong.