From 76c54c532b0c0374d3284655965f76ee2e9c97c5 Mon Sep 17 00:00:00 2001 From: Joe Kratzat Date: Wed, 9 Mar 2022 14:48:57 -0500 Subject: [PATCH] docs: add a simple local development guide --- DEVELOPMENT.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 DEVELOPMENT.md diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md new file mode 100644 index 000000000..c1a35ca6b --- /dev/null +++ b/DEVELOPMENT.md @@ -0,0 +1,30 @@ +# Development + +The simples way to test the code is to run it from local. +If you have `capoci-controller-manager ` running in your management cluster, please scale down the deployment +```bash +kubectl scale deployment/capoci-controller-manager --replicas=0 -n cluster-api-provider-oci-system +``` +Then run the following commands. +```bash +export AUTH_CONFIG_DIR="/auth-config.yaml" +make run +``` +This will run the code against the local management cluster. + +Please execute the following steps if you want to create an image from the repository + +```bash +export TAG= +export REGISTRY="iad.ocir.io/" +make docker-build +``` + +Push the resulting docker image to the repository. + +Execute the following steps to install the image + +```bash +make release-manifests +kubectl apply -f out/infrastructure-oci/v0.1.0-alpha1/infrastructure-components.yaml +``` \ No newline at end of file