Skip to content

Commit

Permalink
docs: add a simple local development guide
Browse files Browse the repository at this point in the history
  • Loading branch information
joekr committed Mar 9, 2022
1 parent d5f1495 commit 76c54c5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -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="<repo-path>/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=<tag>
export REGISTRY="iad.ocir.io/<namespace>"
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
```

0 comments on commit 76c54c5

Please sign in to comment.