Skip to content

Commit

Permalink
refactor: Simplify some commands in kafka cdc example. (#8910)
Browse files Browse the repository at this point in the history
  • Loading branch information
liurenjie1024 authored Mar 31, 2023
1 parent 9bcfb17 commit 1b05700
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions integration_tests/kafka-cdc-sink/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,13 @@ dependencies = ["start-cluster"]

[tasks.setup-pg]
script = """
docker run \
--network risingwave-compose_default \
-v ./:/tmp/ \
--env PGPASSWORD=123456 \
postgres:14.7 \
psql \
-h postgres \
-p 5432 \
-d mydb \
-U myuser \
-f /tmp/pg.sql
PGPASSWORD=123456 psql -h localhost -p 5432 -d mydb -U myuser -f pg.sql
"""
dependencies = ["start-cluster"]

[tasks.setup-risingwave]
script = """
docker run \
--network risingwave-compose_default \
-v ./:/tmp/ \
postgres:14.7 \
psql \
-h frontend-node-0 \
-p 4566 \
-d dev \
-U root \
-f /tmp/risingwave.sql
psql -h localhost -p 4566 -d dev -U root -f risingwave.sql
"""
dependencies = ["setup-kafka"]

Expand Down

0 comments on commit 1b05700

Please sign in to comment.