Skip to content

Comments

Improve template copy on linux/mac to use running container, and only boot 1 extra container on fallback.#7

Merged
landwehrj merged 1 commit intomainfrom
improve-template-copy
Aug 1, 2025
Merged

Improve template copy on linux/mac to use running container, and only boot 1 extra container on fallback.#7
landwehrj merged 1 commit intomainfrom
improve-template-copy

Conversation

@landwehrj
Copy link
Contributor

No description provided.

@landwehrj landwehrj requested a review from Copilot July 31, 2025 17:27
@landwehrj landwehrj self-assigned this Jul 31, 2025
@landwehrj landwehrj added the enhancement New feature or request label Jul 31, 2025
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 optimizes the template extraction process in the Docker deployment script by prioritizing the use of running containers over creating new ones. The change reduces resource usage by first attempting to copy templates from an already running container before falling back to spinning up a temporary container.

Key changes:

  • Implement a two-stage template extraction strategy that checks for running containers first
  • Simplify error handling by using informational logging instead of error exits
  • Reduce unnecessary container creation when templates can be copied from existing containers

@landwehrj
Copy link
Contributor Author

This should be tested on mac before committed.

@landwehrj landwehrj merged commit 651bebe into main Aug 1, 2025
1 check passed
@landwehrj landwehrj deleted the improve-template-copy branch August 1, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant