Skip to content

Commit

Permalink
Run d-compose later; use build.sh script; fixed LD_LIBRARY_PATH export
Browse files Browse the repository at this point in the history
  • Loading branch information
olapiv committed Oct 27, 2024
1 parent 2e7d56c commit f344ea1
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/build_test_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,15 @@ jobs:
fetch-depth: 0

- name: Build Rondis image
run: docker build -t $IMAGE_NAME -f Dockerfile .

- name: Run rondb-docker
env:
RONDB_DOCKER_DIR: /tmp/rondb-docker
run: |
set -x
path_now=$(pwd)
git clone -b release-0.7 https://github.com/logicalclocks/rondb-docker.git $RONDB_DOCKER_DIR
cd $RONDB_DOCKER_DIR && ./build_run_docker.sh -d \
--size small \
--num-mgm-nodes 1 \
--node-groups 1 \
--replication-factor 1 \
--num-mysql-nodes 1 \
--num-rest-api-nodes 0 \
--num-benchmarking-nodes 0
cd $path_now
run: docker build -t $IMAGE_NAME .

- name: Download RonDB
run: |
set -x
wget $RONDB_TARBALL_URI -O /tmp/temp_tarball.tar.gz
mkdir -p $RONDB_PATH
tar xfz /tmp/temp_tarball.tar.gz -C $RONDB_PATH --strip-components=1
- name: Create Rondis environment
run: |
docker run -d \
Expand All @@ -60,7 +43,24 @@ jobs:
# TODO: Run SQL against MySQL
- name: Build Pink
run: docker exec -i $CONTAINER_NAME bash -c "cd pink && make clean && make"
run: docker exec -i $CONTAINER_NAME bash -c "cd pink && ./build.sh"

- name: Run rondb-docker
env:
RONDB_DOCKER_DIR: /tmp/rondb-docker
run: |
set -x
path_now=$(pwd)
git clone -b release-0.7 https://github.com/logicalclocks/rondb-docker.git $RONDB_DOCKER_DIR
cd $RONDB_DOCKER_DIR && ./build_run_docker.sh -d \
--size small \
--num-mgm-nodes 1 \
--node-groups 1 \
--replication-factor 1 \
--num-mysql-nodes 1 \
--num-rest-api-nodes 0 \
--num-benchmarking-nodes 0
cd $path_now
- name: Connect Docker network
run: |
Expand All @@ -69,8 +69,9 @@ jobs:
docker network connect $COMPOSE_NETWORK $CONTAINER_NAME
- name: Run Rondis
run: docker exec -i $CONTAINER_NAME bash -d \
-c "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/rondb/lib pink/rondis/rondis 6379 mgmd_1:1186 2"
run: |
docker exec -i $CONTAINER_NAME bash -c \
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/rondb/lib && pink/rondis/rondis 6379 mgmd_1:1186 2"
- name: Run Redis benchmark
run: docker exec -i $CONTAINER_NAME bash \
Expand Down

0 comments on commit f344ea1

Please sign in to comment.