X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=Makefile;h=b5a8ea7e75b606d158fd1a1adf6954ffd3159979;hb=refs%2Fchanges%2F08%2F4708%2F1;hp=977aac9aa261133968bb589f01e47166f047e747;hpb=5885be79556efc50b6ee9e1c6e51a803095b9073;p=icn.git diff --git a/Makefile b/Makefile index 977aac9..b5a8ea7 100644 --- a/Makefile +++ b/Makefile @@ -1,25 +1,133 @@ SHELL:=/bin/bash -BMDIR:=$(CURDIR)/env/metal3 -METAL3DIR:=$(CURDIR)/deploy/metal3/scripts -BPA_OPERATOR:=$(CURDIR)/cmd/bpa-operator/ -KUD_PATH:=$(CURDIR)/deploy/kud -all: bm_install +help: + @echo " Targets:" + @echo " jump_server -- install jump server into this machine" + @echo " unit -- run the unit tests" + @echo " verifier -- run verifier tests for CI & CD logs" + @echo " vm_cluster -- deploy VM compute cluster" + @echo " pod11_cluster -- deploy pod11 compute cluster" + @echo " help -- this help output" -bm_preinstall: - pushd $(BMDIR) && ./01_install_package.sh && ./02_configure.sh && ./03_launch_prereq.sh && popd +install: jump_server -bm_install: - pushd $(METAL3DIR) && ./metal3.sh && popd +# The jump server -bm_all: bm_preinstall bm_install +jump_server: management_cluster \ + tools \ + ironic_bridge \ + controllers -kud_download: - pushd $(KUD_PATH) && ./kud_launch.sh && popd +jump_server_clean: ironic_bridge_clean \ + management_cluster_clean -bpa_op_install: kud_download - pushd $(BPA_OPERATOR) && ./bpa_operator_launch.sh && popd +# The jump server requires a K8s cluster to install into -bpa_op_all: bm_all bpa_op_install +management_cluster: + source user_config.sh && \ + ./deploy/kud/kud_bm_launch.sh minimal -.PHONY: all bm_preinstall bm_install +management_cluster_clean: + ./deploy/kud/kud_bm_launch.sh reset + +# Tools used during the installation of jump server components + +tools: kustomize \ + clusterctl \ + flux_cli \ + sops \ + emcoctl + +kustomize: + ./deploy/kustomize/kustomize.sh deploy + +clusterctl: + ./deploy/clusterctl/clusterctl.sh deploy + +flux_cli: + ./deploy/flux-cli/flux-cli.sh deploy + +sops: + ./deploy/sops/sops.sh deploy + +emcoctl: golang + ./deploy/emcoctl/emcoctl.sh deploy + +golang: + ./deploy/golang/golang.sh deploy + +# Provisioning network configuration in the jump server + +ironic_bridge: + source user_config.sh && env && \ + ./deploy/ironic/ironic.sh deploy-bridge + +ironic_bridge_clean: + ./deploy/ironic/ironic.sh clean-bridge + +# Jump server components + +controllers: baremetal_operator \ + cluster_api \ + flux + +baremetal_operator: ironic cert_manager + ./deploy/baremetal-operator/baremetal-operator.sh deploy + +baremetal_operator_clean: + ./deploy/baremetal-operator/baremetal-operator.sh clean + +ironic: + ./deploy/ironic/ironic.sh deploy + +cert_manager: + ./deploy/cert-manager/cert-manager.sh deploy + +cluster_api: + ./deploy/cluster-api/cluster-api.sh deploy + +flux: + ./deploy/flux/flux.sh deploy + +# Example compute clusters + +pod11_cluster: + ./deploy/site/pod11/pod11.sh deploy + ./deploy/site/pod11/pod11.sh wait + ./deploy/kata/kata.sh test + ./deploy/addons/addons.sh test + +pod11_cluster_clean: + ./deploy/site/pod11/pod11.sh clean + +vm_cluster: + ./deploy/site/vm/vm.sh deploy + ./deploy/site/vm/vm.sh wait + ./deploy/kata/kata.sh test + ./deploy/addons/addons.sh test + +vm_cluster_clean: + ./deploy/site/vm/vm.sh clean + +# Test targets + +unit: bashate + +bashate: + bashate -i E006,E003,E002,E010,E011,E042,E043 `find . -type f -not -path './ci/jjb/shell/*' -not -path './build/*' -name "*.sh"` + +verifier: vm_verifier + +vm_verifier: jump_server \ + vm_cluster \ + vm_cluster_clean \ + jump_server_clean + +bm_verifier: jump_server \ + pod11_cluster \ + pod11_cluster_clean \ + jump_server_clean + +SDWAN_VERIFIER_PATH:=$(CURDIR)/sdwan/test +sdwan_verifier: + pushd $(SDWAN_VERIFIER_PATH) && bash sdwan_verifier.sh && popd