Skip to content

Commit

Permalink
Updated command to use docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Dec 2, 2024
1 parent a361f2f commit 3a07bda
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pesacheck_meedan_bridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 3a07bda

Please sign in to comment.