From 4454bcdda5e399c98353a63d437f16bb16517a2a Mon Sep 17 00:00:00 2001 From: Shubham Shukla Date: Mon, 4 Sep 2023 18:58:11 +0530 Subject: [PATCH] Docker Image location correction in readme Signed-off-by: Shubham Shukla --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 28491834..0c5bcce7 100644 --- a/README.md +++ b/README.md @@ -33,21 +33,21 @@ The choice will depend on what context you want to use ansible in. ``` - Using a Docker container. - For v1.2, a Docker image, ``ibmcom/ibp-ansible``, has been published to Docker Hub. + - You can run a playbook using this Docker image, by volume mounting the playbook into the Docker container and running the ``ansible-playbook`` command: + - ```shell + - Note that the UID flag ``-u $(id -u)`` ensures that Ansible can write connection profile and identity files to the volume mount. + - For v2.0, the docker image is in the `ghcr.io` [registry](https://github.com/IBM-Blockchain/ansible-collection/pkgs/container/ofs-ansibe). It can be run in the same way + For v2.0, the docker image is in the `ghcr.io` [registry](https://github.com/hyperledger-labs/fabric-ansible-collection/pkgs/container/fabric-ansible). It can be run in the same way ```shell - docker pull ghcr.io/ibm-blockchain/ofs-ansibe:sha-826e86e - docker run --rm -u $(id -u) -v /path/to/playbooks:/playbooks ghcr.io/ibm-blockchain/ofs-ansibe:sha-826e86e ansible-playbook /playbooks/playbook.yml + docker pull ghcr.io/hyperledger-labs/fabric-ansible:sha-c9330b9 + docker run --rm -u $(id -u) -v /path/to/playbooks:/playbooks ghcr.io/hyperledger-labs/fabric-ansible:sha-c9330b9 ansible-playbook /playbooks/playbook.yml ``` - If you are using github actions for CI/CD there is a [github action](https://github.com/hyperledgendary/fabric-cloud-infrastructure/tree/main/fabric-ansible-action) that uses the same docker image as the basis.