Skip to content

Commit 8f0eece

Browse files
authored
Bug 1507111 - Add docs for apb push -o (#161)
1 parent 7f8d07c commit 8f0eece

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/getting_started.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,14 +716,22 @@ Example:
716716
fail: false
717717
when: webpage.status == 200
718718
```
719-
### Using APB Push
719+
### Using APB Push with Ansible Service Broker
720720
To test an APB you have built without pushing your image to a registry, you can use `apb push`. This command takes the Ansible Service Broker's route as an argument and will push the base64 encoded spec into the list of available APBs for the Broker to deploy. In order to use this feature, the Ansible Service Broker you are running must be configured to run in development mode. In the [config file](https://github.com/openshift/ansible-service-broker/blob/master/etc/ex.dev.config.yaml#L21), set `devbroker` to `true`. This enables an endpoint to the broker at `/apb/spec` that a user can POST APBs to.
721721

722722
```
723723
apb push <broker_route>
724724
```
725725
726-
You should now be able to see your APB in the listed specs available in the Broker.
726+
### Using APB Push with Local OpenShift registry
727+
To test an APB you have built with the internal openshift registry, you can use `apb push --openshift`. This command takes the name of the OpenShift namespace you wish to push the image to. In order to use this feature, the Ansible Service Broker you are running must be configured to bootstrap from the local_openshift registry. Please see the [config file documentation](https://github.com/openshift/ansible-service-broker/blob/master/docs/config.md) to configure the registry for type `local_openshift`. The following command will build the image with the namespace you passed in as a parameter (by default `openshift`) and push it to the internal registry.
728+
729+
```
730+
apb push --openshift
731+
```
732+
733+
734+
You should now be able to see your APB in the service catalog.
727735
728736
#### Specifying Route for Broker
729737
To get the route of the Ansible Service Broker in OpenShift:

0 commit comments

Comments
 (0)