-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(image): update command to build image locally (#2930)
- Loading branch information
Showing
8 changed files
with
56 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/auth-server | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |
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,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/certmanager | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |
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,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/config-api | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |
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,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/configurator | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |
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,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/fido2 | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |
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,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/monolith | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |
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,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/persistence-loader | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |
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,18 +1,18 @@ | ||
CN_VERSION?=1.0.5-SNAPSHOT | ||
IMAGE_NAME=janssenproject/scim | ||
UNSTABLE_VERSION?=dev | ||
DEV_VERSION?=$(shell echo ${CN_VERSION} | cut -d '-' -f 1)_dev | ||
|
||
.PHONY: test clean all build-dev trivy-scan grype-scan | ||
.DEFAULT_GOAL := build-dev | ||
|
||
build-dev: | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} . | ||
@echo "[I] Building Docker image ${IMAGE_NAME}:${DEV_VERSION}" | ||
@docker build --rm --force-rm -t ${IMAGE_NAME}:${DEV_VERSION} . | ||
|
||
trivy-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using trivy" | ||
@trivy image --security-checks vuln ${IMAGE_NAME}:${DEV_VERSION} | ||
|
||
grype-scan: | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${CN_VERSION}_${UNSTABLE_VERSION} | ||
@echo "[I] Scanning Docker image ${IMAGE_NAME}:${DEV_VERSION} using grype" | ||
@grype -v ${IMAGE_NAME}:${DEV_VERSION} |