MCPcopy
hub / github.com/InternLM/MindSearch / run_docker_compose

Function run_docker_compose

docker/msdl/docker_manager.py:119–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118
119def run_docker_compose():
120 docker_compose_cmd = get_docker_command()
121 try:
122 print(t("STARTING_CONTAINERS_WITH_BUILD"))
123 subprocess.run(
124 docker_compose_cmd
125 + [
126 "-f",
127 os.path.join(TEMP_DIR, "docker-compose.yaml"),
128 "--env-file",
129 os.path.join(TEMP_DIR, ".env"),
130 "up",
131 "-d",
132 "--build",
133 ],
134 check=True,
135 )
136 print(t("CONTAINERS_STARTED"))
137 except subprocess.CalledProcessError as e:
138 print(t("DOCKER_ERROR", error=str(e)))
139 print(t("DOCKER_OUTPUT"))
140 print(e.output.decode() if e.output else "No output")
141 stop_and_remove_containers()
142 sys.exit(1)
143
144
145def update_docker_compose_paths():

Callers 2

mainFunction · 0.90
mainFunction · 0.85

Calls 3

tFunction · 0.90
get_docker_commandFunction · 0.85

Tested by

no test coverage detected