mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
try call compose plugin cli directly
This commit is contained in:
parent
a82dc945aa
commit
87d2da4c01
1 changed files with 6 additions and 2 deletions
|
|
@ -205,7 +205,8 @@ class ACMEServer:
|
|||
|
||||
try:
|
||||
# Launch the Boulder server
|
||||
self._launch_process(['docker-compose', 'up', '--force-recreate'], cwd=instance_path)
|
||||
self._launch_process(
|
||||
[self._find_docker_compose(), 'up', '--force-recreate'], cwd=instance_path)
|
||||
|
||||
# Wait for the ACME CA server to be up.
|
||||
print('=> Waiting for boulder instance to respond...')
|
||||
|
|
@ -223,7 +224,7 @@ class ACMEServer:
|
|||
# If we failed to set up boulder, print its logs.
|
||||
print('=> Boulder setup failed. Boulder logs are:')
|
||||
process = self._launch_process([
|
||||
'docker-compose', 'logs'], cwd=instance_path, force_stderr=True
|
||||
self._find_docker_compose(), 'logs'], cwd=instance_path, force_stderr=True
|
||||
)
|
||||
process.wait()
|
||||
raise
|
||||
|
|
@ -254,6 +255,9 @@ class ACMEServer:
|
|||
self._processes.append(process)
|
||||
return process
|
||||
|
||||
def _find_docker_compose(self) -> str:
|
||||
return "/usr/libexec/docker/cli-plugins/docker-compose"
|
||||
|
||||
|
||||
def main() -> None:
|
||||
# pylint: disable=missing-function-docstring
|
||||
|
|
|
|||
Loading…
Reference in a new issue