-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from ScienceSoft-Inc/update_readme
created a root Makefile and removed information from the db
- Loading branch information
Showing
9 changed files
with
40 additions
and
265 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,83 +1,31 @@ | ||
## You can change these values | ||
RELEASE_NAME_DB=db | ||
RELEASE_NAME_MUTATOR=mutator | ||
RELEASE_NAME_APP=app | ||
TIMEOUT=30 | ||
|
||
.PHONY : all-darwin | ||
all-darwin: | ||
make minikube update-darwin docker-integrity-sum update-patch docker-mutator helm-all | ||
@echo "==> Successfully installed" | ||
|
||
.PHONY : all-linux | ||
all-linux: | ||
make minikube update-linux docker-integrity-sum update-patch docker-mutator helm-all | ||
@echo "==> Successfully installed" | ||
|
||
.PHONY : all-windows | ||
all-windows: | ||
make minikube update-linux docker-integrity-sum update-patch docker-mutator helm-all | ||
@echo "==> Successfully installed" | ||
# You can change these values | ||
RELEASE_NAME_APP := app | ||
IMAGE_EXPORT := integrity:latest | ||
ALG := sha256 | ||
DIRS := "app,bin" | ||
|
||
.PHONY : all | ||
all: minikube start-minio-integrity-crd snapshots start-mutator helm-demo | ||
@echo "==> Successfully installed all systems" | ||
|
||
.PHONY : start-minio-integrity-crd | ||
start-minio-integrity-crd: | ||
make -C ./integrity-sum minio-install buildtools build docker crd-controller-build load-images crd-controller-deploy | ||
|
||
.PHONY : snapshots | ||
snapshots: | ||
make -C ./integrity-sum IMAGE_EXPORT=$(IMAGE_EXPORT) ALG=$(ALG) DIRS=$(DIRS) export-fs snapshot helm-snapshot | ||
|
||
.PHONY : start-mutator | ||
start-mutator: | ||
make -C ./integrity-mutator docker helm-mutator | ||
@echo "==> Successfully installed mutator" | ||
|
||
.PHONY : minikube | ||
minikube: | ||
minikube start | ||
|
||
.PHONY : stop | ||
stop: | ||
helm uninstall ${RELEASE_NAME_APP} | ||
helm uninstall ${RELEASE_NAME_MUTATOR} | ||
helm uninstall ${RELEASE_NAME_DB} | ||
minikube stop | ||
|
||
.PHONY : docker-integrity-sum | ||
docker-integrity-sum: | ||
make -C integrity-sum docker | ||
|
||
.PHONY : docker-mutator | ||
docker-mutator: update-patch | ||
make -C integrity-mutator docker | ||
|
||
.PHONY: helm-all | ||
helm-all: helm-database helm-mutator timeout helm-demo | ||
|
||
.PHONY: helm-database | ||
helm-database: | ||
helm dependency update helm-charts/database-to-integrity-sum | ||
helm install ${RELEASE_NAME_DB} helm-charts/database-to-integrity-sum | ||
@echo "==> Successfully installed database" | ||
|
||
.PHONY: helm-mutator | ||
helm-mutator: | ||
helm install ${RELEASE_NAME_MUTATOR} helm-charts/mutator | ||
@echo "==> Successfully installed mutator" | ||
|
||
.PHONY: helm-demo | ||
helm-demo: | ||
helm install ${RELEASE_NAME_APP} helm-charts/demo-apps-to-monitor | ||
@echo "==> Successfully installed demo-apps" | ||
|
||
.PHONE: timeout | ||
timeout: | ||
sleep ${TIMEOUT} | ||
|
||
.PHONY: update-patch | ||
update-patch: | ||
cp patch-json-command.json integrity-mutator/ | ||
|
||
SECRET_DB="$$(grep 'secretName' helm-charts/database-to-integrity-sum/values.yaml | cut -d':' -f2 | tr -d '[:space:]')" | ||
SECRET_HASHER="$$(grep 'secretNameDB' helm-charts/demo-apps-to-monitor/values.yaml | cut -d':' -f2 | tr -d '[:space:]')" | ||
VALUE_RELEASE_NAME_APP="$$(grep 'releaseNameDB' helm-charts/demo-apps-to-monitor/values.yaml | cut -d':' -f2 | tr -d '[:space:]')" | ||
PATCH_NAME="$$(grep -m2 'name' patch-json-command.json | tail -n1 | cut -d':' -f2 | tr -d '[:space:]' | sed 's/\"//g')" | ||
SECRET_PATCH_NAME=${RELEASE_NAME_DB}-${SECRET_DB} | ||
.PHONY: update-darwin | ||
update-darwin: | ||
sed -i '' "s/${PATCH_NAME}/${SECRET_PATCH_NAME}/" patch-json-command.json >> patch-json-command.json | ||
sed -i '' "s/${SECRET_HASHER}/${SECRET_DB}/" helm-charts/demo-apps-to-monitor/values.yaml >> helm-charts/demo-apps-to-monitor/values.yaml | ||
sed -i '' "s/${VALUE_RELEASE_NAME_APP}/${RELEASE_NAME_DB}/" helm-charts/demo-apps-to-monitor/values.yaml >> helm-charts/demo-apps-to-monitor/values.yaml | ||
|
||
PHONY: update-linux | ||
update-linux: | ||
sed -i "s/${PATCH_NAME}/${SECRET_PATCH_NAME}/" patch-json-command.json >> patch-json-command.json | ||
sed -i "s/${SECRET_HASHER}/${SECRET_DB}/" helm-charts/demo-apps-to-monitor/values.yaml >> helm-charts/demo-apps-to-monitor/values.yaml | ||
sed -i "s/${VALUE_RELEASE_NAME_APP}/${RELEASE_NAME_DB}/" helm-charts/demo-apps-to-monitor/values.yaml >> helm-charts/demo-apps-to-monitor/values.yaml |
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.
Binary file removed
BIN
-56.9 KB
helm-charts/database-to-integrity-sum/charts/postgresql-12.1.14.tgz
Binary file not shown.
17 changes: 0 additions & 17 deletions
17
helm-charts/database-to-integrity-sum/templates/secrets.yaml
This file was deleted.
Oops, something went wrong.
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
Submodule integrity-mutator
updated
44 files
Submodule integrity-sum
updated
136 files