Skip to content

Commit

Permalink
fix: ch docker-compose to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto-abarzua committed Nov 17, 2023
1 parent bcc5c3d commit fd79e28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 155 deletions.
152 changes: 0 additions & 152 deletions backend/src/utils/instance_generator.py

This file was deleted.

6 changes: 3 additions & 3 deletions instanciator/backend/src/instance_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def get_or_create(self, uuid_str):

# Launch Docker Compose
# result = subprocess.run(
# ["docker-compose", "-f", self.docker_compose_path, "-p", project_name, "up", "-d"],
# ["docker compose", "-f", self.docker_compose_path, "-p", project_name, "up", "-d"],
# env={**os.environ, **env_vars})

command = ["docker-compose", "-f", self.docker_compose_path, "-p", project_name, "up", "-d"]
command = ["docker compose", "-f", self.docker_compose_path, "-p", project_name, "up", "-d"]

result = subprocess.check_call(command, env={**os.environ, **env_vars})
if result != 0:
Expand Down Expand Up @@ -126,7 +126,7 @@ def destroy(self, uuid_str):
"CONTROLLER_SERVER_PORT": str(instance['ports']['controller_server_port']),
"ESP_CONTROLLER_SERVER_PORT": str(instance['ports']['controller_server_port']),
}
command = ["docker-compose", "-f", self.docker_compose_path, "-p", project_name, "down","--remove-orphans"]
command = ["docker compose", "-f", self.docker_compose_path, "-p", project_name, "down","--remove-orphans"]
result = subprocess.check_call(command, env={**os.environ, **env_vars})
if result != 0:
raise Exception("Docker Compose failed")
Expand Down

0 comments on commit fd79e28

Please sign in to comment.