Skip to content

Commit

Permalink
add support of "docker compose" as "docker-compose" does not seem to …
Browse files Browse the repository at this point in the history
…work on ubuntu 24.04
  • Loading branch information
trazfr committed Sep 23, 2024
1 parent 9d690d7 commit 5a15e1e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,18 @@ DD_SITE=datadoghq.com

and use it to pass the Datadog credentials to `docker-compose`.
This will generate profiles and upload them to Datadog.

## Hits and misses keys

To try to compare hit and misses, the keys are interleaved, the hits are done with 1M even keys with the format [%08d](https://github.com/trazfr/rocksdbjni-miss-perfs/blob/main/src/main/java/test/App.java#L14):

- 00000000
- 00000002
- 00000004...
- 01999998

The misses are odd keys:

- 00000001
- 00000003...
- 01999999
6 changes: 4 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ EOF
fi

COMPOSE=
if docker-compose version >/dev/null 2>&1; then
if docker compose version >/dev/null 2>&1; then
COMPOSE="docker compose"
elif docker-compose version >/dev/null 2>&1; then
COMPOSE=docker-compose
elif podman-compose version >/dev/null 2>&1; then
COMPOSE=podman-compose
else
echo "Please install docker-compose or podman-compose"
echo "Please install the docker compose plugin, docker-compose or podman-compose"
fi

$COMPOSE build
Expand Down

0 comments on commit 5a15e1e

Please # to comment.