Skip to content

Commit

Permalink
Merge pull request #834 from CodeForAfrica/chore/update_readme
Browse files Browse the repository at this point in the history
Updated command to use docker compose
  • Loading branch information
koechkevin authored Dec 4, 2024
2 parents 263eda6 + 73ca8a9 commit 4ceb5e3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pesacheck_meedan_bridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +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:
```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 exec api-pesacheck_meedan_bridge ./pex
```

0 comments on commit 4ceb5e3

Please sign in to comment.