MCPcopy Create free account
hub / github.com/apache/arrow / docker_compose_info

Function docker_compose_info

dev/archery/archery/docker/cli.py:290–305  ·  view source on GitHub ↗

Show Docker Compose definition info for service_name. SERVICE_NAME is the name of the docker service defined in compose.yaml. Look at `archery docker images` output for names.

(obj, service_name, show)

Source from the content-addressed store, hash-verified

288 " command, environment, build, dockerfile")
289@click.pass_obj
290def docker_compose_info(obj, service_name, show):
291 """Show Docker Compose definition info for service_name.
292
293 SERVICE_NAME is the name of the docker service defined in
294 compose.yaml. Look at `archery docker images` output for names.
295 """
296 compose = obj['compose']
297 try:
298 service = compose.config.raw_config["services"][service_name]
299 except KeyError:
300 click.echo(f'Service name {service_name} could not be found', err=True)
301 sys.exit(1)
302 else:
303 click.echo(f'Service {service_name} Docker Compose config:')
304 output = "\n".join(compose.info(service, show))
305 click.echo(output)

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected