From 3a07bdaf6535aca6e310be8fc968f867c29edc6f Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Mon, 2 Dec 2024 10:47:13 +0300 Subject: [PATCH 1/2] Updated command to use docker compose --- pesacheck_meedan_bridge/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pesacheck_meedan_bridge/README.md b/pesacheck_meedan_bridge/README.md index 6baa1215..ee418fce 100644 --- a/pesacheck_meedan_bridge/README.md +++ b/pesacheck_meedan_bridge/README.md @@ -34,11 +34,9 @@ To run the built docker image, execute: docker compose --env-file ./pesacheck_meedan_bridge/.env up pesacheck_meedan_bridge ``` To get container ID of this script, execute: -```sh -container_id=$(docker ps --filter "ancestor=codeforafrica/pesacheck_meedan_bridge:latest" --format "{{.ID}}" | head -n 1) && [ -z "$container_id" ] && echo "No running container found for the image codeforafrica/pesacheck_meedan_bridge:latest" -``` + To run `pex` binary, execute: ```sh -docker exec -it $container_id ./pex +docker compose -f compose.yaml exec pesacheck_meedan_bridge ./pex ``` From 73ca8a939eaf08a0a0aa61051d610b51e647e524 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Wed, 4 Dec 2024 12:26:21 +0300 Subject: [PATCH 2/2] Update README with corrected command for executing pex binary --- pesacheck_meedan_bridge/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pesacheck_meedan_bridge/README.md b/pesacheck_meedan_bridge/README.md index ee418fce..20712755 100644 --- a/pesacheck_meedan_bridge/README.md +++ b/pesacheck_meedan_bridge/README.md @@ -33,10 +33,10 @@ To run the built docker image, execute: ```sh docker compose --env-file ./pesacheck_meedan_bridge/.env up pesacheck_meedan_bridge ``` -To get container ID of this script, execute: + To run `pex` binary, execute: ```sh -docker compose -f compose.yaml exec pesacheck_meedan_bridge ./pex +docker compose exec api-pesacheck_meedan_bridge ./pex ```