Skip to content

Commit e7ed1dd

Browse files
committed
Improve build and deployment guideline
1 parent 7637d16 commit e7ed1dd

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/contributing.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,29 @@ make operator-image deploy
132132

133133
This will build and deploy the operator to namespace specified in your configuration file.
134134

135+
If this is your first time building the operator, you may need to fetch the missing dependencies. Navigate to `./helm-charts/charts/community-operator` and run:
136+
137+
```sh
138+
helm dependency build
139+
```
140+
135141
If you are using a local docker registry you should run the following command.
136142
The additional `IMG_BUILD_ARGS=--insecure` variable will add the `--insecure` flag to the command creating the manifests.
137-
This is necessary if your local registry is not secure. Read more about the flag on the [documentatio](https://docs.docker.com/reference/cli/docker/manifest/#working-with-insecure-registries)
143+
This is necessary if your local registry is not secure. Read more about the flag on the [documentation](https://docs.docker.com/reference/cli/docker/manifest/#working-with-insecure-registries)
138144

139145
```sh
140146
IMG_BUILD_ARGS=--insecure make operator-image deploy
141147
```
142148

149+
If you are using a local Docker registry and following the config.json from this guide, you need to build all the images, not just the operator. To do this, run the following command:
150+
151+
```sh
152+
IMG_BUILD_ARGS=--insecure make all-images deploy
153+
```
143154

144-
#### See the operator deployment
155+
#### See the operator deployment in the `mongodb` namespace
145156
```sh
146-
kubectl get pods
157+
kubectl get pods -n mongodb
147158
```
148159

149160
#### (Optional) Create a MongoDBCommunity Resource

0 commit comments

Comments
 (0)