Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: Update docker compose to V2 #2545

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions docker-scripts/klaw-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,38 +38,38 @@ buildForUITests () {
deploy () {
echo `pwd`
echo "Deploy Klaw"
docker-compose -f docker-scripts/docker-compose-klaw.yaml up -d
docker compose -f docker-scripts/docker-compose-klaw.yaml up -d
}

testEnv () {
echo "Deploy Kafka"
docker-compose -f docker-scripts/docker-compose-testEnv.yaml up -d
docker compose -f docker-scripts/docker-compose-testEnv.yaml up -d
}

destroy() {
echo "Tear down container"
docker-compose -f docker-scripts/docker-compose-klaw.yaml down
docker-compose -f docker-scripts/docker-compose-testEnv.yaml down
docker-compose -f docker-scripts/docker-compose-klaw.yaml down
docker-compose -f docker-scripts/docker-compose-testEnv.yaml down
docker compose -f docker-scripts/docker-compose-klaw.yaml down
docker compose -f docker-scripts/docker-compose-testEnv.yaml down
docker compose -f docker-scripts/docker-compose-klaw.yaml down
docker compose -f docker-scripts/docker-compose-testEnv.yaml down
}

stop() {
echo "Stop container"
docker-compose -f docker-scripts/docker-compose-klaw.yaml stop
docker-compose -f docker-scripts/docker-compose-testEnv.yaml stop
docker-compose -f docker-scripts/docker-compose-klaw.yaml stop
docker-compose -f docker-scripts/docker-compose-testEnv.yaml stop
docker compose -f docker-scripts/docker-compose-klaw.yaml stop
docker compose -f docker-scripts/docker-compose-testEnv.yaml stop
docker compose -f docker-scripts/docker-compose-klaw.yaml stop
docker compose -f docker-scripts/docker-compose-testEnv.yaml stop
}

deployDeveloperEnv() {
echo `pwd`
echo "Deploy developer Klaw"
docker-compose -f docker-scripts/docker-compose-klaw.yaml up -d
docker compose -f docker-scripts/docker-compose-klaw.yaml up -d


# Use 'docker-compose ps' to get information about running containers
container_info=$(docker-compose -f docker-scripts/docker-compose-klaw.yaml ps -q klaw-core)
# Use 'docker compose ps' to get information about running containers
container_info=$(docker compose -f docker-scripts/docker-compose-klaw.yaml ps -q klaw-core)

if [ -n "$container_info" ]; then
container_address=$(docker port "$container_info" 9097)
Expand Down