Apache DataFusion SQL Query Engine
update docker-compose.yaml on ballista version bump (#893)
QP Hou57bf54f7665e
diff --git a/benchmarks/docker-compose.yaml b/benchmarks/docker-compose.yamlindex e025ea360e..437b461a0f 100644--- a/benchmarks/docker-compose.yaml+++ b/benchmarks/docker-compose.yaml@@ -20,7 +20,7 @@ services:image: quay.io/coreos/etcd:v3.4.9command: "etcd -advertise-client-urls http://etcd:2379 -listen-client-urls http://0.0.0.0:2379"ballista-scheduler:- image: ballista:0.5.0-SNAPSHOT+ image: ballista:0.6.0command: "/scheduler --config-backend etcd --etcd-urls etcd:2379 --bind-host 0.0.0.0 --bind-port 50050"environment:- RUST_LOG=ballista=debug@@ -29,7 +29,7 @@ services:depends_on:- etcdballista-executor:- image: ballista:0.5.0-SNAPSHOT+ image: ballista:0.6.0command: "/executor --bind-host 0.0.0.0 --bind-port 50051 --scheduler-host ballista-scheduler"scale: 2environment:@@ -39,7 +39,7 @@ services:depends_on:- ballista-schedulerballista-client:- image: ballista:0.5.0-SNAPSHOT+ image: ballista:0.6.0command: "/bin/sh" # do nothingenvironment:- RUST_LOG=infodiff --git a/dev/update_ballista_versions.py b/dev/update_ballista_versions.pyindex 3a023a7b2f..f4319e2639 100755--- a/dev/update_ballista_versions.py+++ b/dev/update_ballista_versions.py@@ -23,6 +23,7 @@# pip install tomlkitimport os+import reimport argparsefrom pathlib import Pathimport tomlkit@@ -77,6 +78,16 @@ def main():for cargo_toml in ballista_crates:update_cargo_toml(cargo_toml, new_version)+ docker_compose_path = os.path.join(repo_root, "benchmarks/docker-compose.yaml")+ print(f'Updating ballista versions in {docker_compose_path}')+ with open(docker_compose_path, "r+") as fd:+ data = fd.read()+ pattern = re.compile(r'(^\s+image:\sballista:)\d+\.\d+\.\d+(-SNAPSHOT)?', re.MULTILINE)+ data = pattern.sub(r"\g<1>"+new_version, data)+ fd.truncate(0)+ fd.seek(0)+ fd.write(data)+if __name__ == "__main__":main()