Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions apb_devel/writing/getting_started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,14 @@ RUN chmod -R g=u /opt/{ansible,apb}
USER apb
----

. In the *_Dockerfile_*, you must now update `com.redhat.apb.spec` in the `LABEL`
instruction with a base64 encoded version of *_apb.yml_*. To do this, run `apb
prepare`:
. In the *_Dockerfile_*, there are two updates to make. The first is to change the
`FROM` directive to use the image from RHCC. The first line should now read:
----
FROM openshift3/apb-base
----

. We must now update `com.redhat.apb.spec` in the `LABEL` instruction with a
base64 encoded version of *_apb.yml_*. To do this, run `apb prepare`:
+
----
$ cd my-test-apb
Expand All @@ -125,7 +130,7 @@ This updates the *_Dockerfile_* as follows:
+
.*_Dockerfile_*
----
FROM ansibleplaybookbundle/apb-base
FROM openshift3/apb-base

LABEL "com.redhat.apb.spec"=\
"dmVyc2lvbjogMS4wCm5hbWU6IG15LXRlc3QtYXBiCmRlc2NyaXB0aW9uOiBUaGlzIGlzIGEgc2Ft\
Expand Down
12 changes: 12 additions & 0 deletions install_config/install/advanced_install.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,18 @@ endif::[]
These settings create a persistent volume that is attached to the OAB's etcd
instance during cluster installation.

==== Configuring the OpenShift Ansible Broker for local APB development

In order to do APB development with the OpenShift Container Registry in conjunction
with the OAB, a whitelist must be defined. By default the whitelist is empty so that
a user cannot add APB images to the broker without a cluster administrator configuring
the broker. To whitelist all images that end in `-apb` we can add the following in the
`[OSEv3:vars]` section:

----
ansible_service_broker_local_registry_whitelist=['.*-apb$']
----

[[configuring-template-service-broker]]
=== Configuring the Template Service Broker

Expand Down