Skip to content

Conversation

@idoudali
Copy link
Owner

@idoudali idoudali commented May 7, 2025

If we cannot connect to the docker registry, then continue with trying to building the docker image or re-using one from the local registry.

@idoudali idoudali requested a review from Copilot May 7, 2025 13:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes how the CLI handles a failure to login to the docker registry by catching exceptions from the docker login command.

  • Wraps the docker login command in a try-except block
  • Logs a warning and continues execution on login failure

@idoudali idoudali force-pushed the idoudalis/fix-docker-login branch from c7cbba0 to 84c9381 Compare May 7, 2025 15:29
@idoudali idoudali requested a review from Copilot May 7, 2025 15:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adjusts the CLI's docker login process to gracefully handle login failures by logging errors and continuing container startup.

  • Wraps the docker login command execution in a try/except block.
  • Logs command execution details safely, redacting sensitive information when applicable.


# Capture and log the output of the command
result = subprocess.run(docker_login_cmd, shell=True, check=True, text=True, capture_output=True)
logging.info(f"Docker login output: {result.stdout}")
Copy link

Copilot AI May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that logging the raw output from the docker login command does not expose sensitive information inadvertently.

Copilot uses AI. Check for mistakes.
If we cannot connect to the docker registry, then continue with
trying to building the docker image or re-using one from the
local registry.
@idoudali idoudali force-pushed the idoudalis/fix-docker-login branch from 84c9381 to 0945c4e Compare May 7, 2025 15:34
@idoudali idoudali merged commit 97d80ce into main May 7, 2025
4 checks passed
@idoudali idoudali deleted the idoudalis/fix-docker-login branch May 7, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants