From 15e9406f6b4a639418bcba6193f7ba70ee614142 Mon Sep 17 00:00:00 2001 From: Dylan Murray Date: Tue, 27 Nov 2018 10:15:46 -0500 Subject: [PATCH] Update container docs for 4.0 (#144) --- docs/apb_cli.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/apb_cli.md b/docs/apb_cli.md index 2caef917..beac56a3 100644 --- a/docs/apb_cli.md +++ b/docs/apb_cli.md @@ -40,11 +40,20 @@ There are three tags to choose from: - **nightly**: following upstream commits, installed from RPM - **canary**: following upstream commits, installed from source build -Copy the [apb-docker-run.sh](https://raw.githubusercontent.com/ansibleplaybookbundle/ansible-playbook-bundle/master/scripts/apb-docker-run.sh) script into your `PATH` and -make sure it's executable: +Create the `.apb` directory where our configuration data will be stored: +``` +$ mkdir -p ~/.apb +``` + +Create an alias which mounts this directory along with our Kubeconfig into the container: +``` +$ 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 +``` +Run `apb version` to verify everything is working properly: ``` -cp $APB_CHECKOUT/scripts/apb-docker-run.sh $YOUR_PATH_DIR/apb && chmod +x $YOUR_PATH_DIR/apb +$ apb version +apb-1.9.5 ``` #### RPM Installation