Skip to content

Commit

Permalink
Trying compose v2
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishVora2912 committed Aug 13, 2024
1 parent 53c75cb commit 5b54175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion docker/docker_build_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
4 changes: 2 additions & 2 deletions docker/test/docker_sanity_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 5b54175

Please sign in to comment.