diff --git a/docker/docker_build_test.py b/docker/docker_build_test.py index ed9b51dcc1f0a..906b88772206f 100755 --- a/docker/docker_build_test.py +++ b/docker/docker_build_test.py @@ -51,7 +51,6 @@ def build_docker_image(image, tag, kafka_url, image_type): def run_docker_tests(image, tag, kafka_url, image_type): temp_dir_path = tempfile.mkdtemp() try: - execute(["docker-compose", "--version"]) current_dir = os.path.dirname(os.path.realpath(__file__)) copy_tree(f"{current_dir}/test/fixtures", f"{temp_dir_path}/fixtures") execute(["wget", "-nv", "-O", f"{temp_dir_path}/kafka.tgz", kafka_url]) diff --git a/docker/test/docker_sanity_test.py b/docker/test/docker_sanity_test.py index d2135fb029507..59ed6fcc9b41f 100644 --- a/docker/test/docker_sanity_test.py +++ b/docker/test/docker_sanity_test.py @@ -41,10 +41,10 @@ def update_file(self, filename, old_string, new_string): def start_compose(self, filename) -> None: self.update_file(filename, "image: {$IMAGE}", f"image: {self.IMAGE}") self.update_file(f"{self.FIXTURES_DIR}/{constants.SSL_CLIENT_CONFIG}", "{$DIR}", self.FIXTURES_DIR) - subprocess.run(["docker-compose", "-f", filename, "up", "-d"]) + subprocess.run(["docker", "compose", "-f", filename, "up", "-d"]) def destroy_compose(self, filename) -> None: - subprocess.run(["docker-compose", "-f", filename, "down"]) + subprocess.run(["docker", "compose", "-f", filename, "down"]) self.update_file(filename, f"image: {self.IMAGE}", "image: {$IMAGE}") self.update_file(f"{self.FIXTURES_DIR}/{constants.SSL_CLIENT_CONFIG}", self.FIXTURES_DIR, "{$DIR}")