Closed aliok closed 4 years ago
@aliok It looks to me like you are running into an issue that has been documented in bugzilla but never made it to the upstream docs: https://bugzilla.redhat.com/show_bug.cgi?id=1615786#c1.
Looks like you need to mkdir -p ~/.apb
and then change your alias to run:
docker run -it --rm --privileged -v $PWD:/mnt -v $HOME/.kube:/.kube -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/.apb:/.apb -u $UID docker.io/ansibleplaybookbundle/apb-tools:nightly
I apologize... I don't use the containerized version so I didn't notice these out of date docs. I will update these today, but for now I would do:
$ mkdir -p ~/.apb
$ alias apb=docker run -it --rm --privileged -v $PWD:/mnt -v $HOME/.kube:/.kube -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/.apb:/.apb -u $UID docker.io/ansibleplaybookbundle/apb-tools:nightly
and verify that apb version
works.
Thanks for the reply. I haven't tried this yet but I will let you know once I try it.
@aliok thank you for submitting this issue. The apb tool has been deprecated for the new Operators model. Please consider using Operator SDK (https://github.com/operator-framework/operator-sdk/) and building an Operator instead of an APB.
Coming here from https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/321
I am trying to make the
apb
tool working with OpenShift 3.11. I was told in https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/321 that there is a newapb
tool now and the old one won't work with the OKD 3.11.Followed the instructions.
Start up cluster and give permissions to
developer
userCreate
apb
script based on the instructions here: https://github.com/automationbroker/apb/blob/master/docs/apb_cli.md#running-from-a-containerSwitch to
nightly
becausestable
andcanary
points to old apb. See https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/321Execute
apb version
:Execute any
apb
command, will see the same messages as above.registries.json is not really created. Created that file manually but result is the same.
Env