Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add up and down Commands #8

Open
secondtruth opened this issue Jun 21, 2024 · 0 comments
Open

Add up and down Commands #8

secondtruth opened this issue Jun 21, 2024 · 0 comments
Labels
brainstorming This post is about collecting ideas. feature New feature or request

Comments

@secondtruth
Copy link
Contributor

secondtruth commented Jun 21, 2024

Implement up and down commands in Seabreeze, analogous to docker compose up|down.

Details

The up command utilizes the Docker API to:

  • Start/Create all the service containers and networks defined in the project's configuration, similar to docker compose up.
  • Give each created container the label {seabreeze.domain}.project set to the project ID, allowing for reliable tracing of containers back to their respective projects.

The down command utilizes the Docker API to:

  • Stop and remove all containers and networks created by the up command.

Benefits

  • Reliable Tracking: Labels ensure that containers can be reliably traced back to their originating projects, providing an alternative to the current heuristic approach.
  • Consistency: Provides a consistent deployment method within the Seabreeze tool, aligning with familiar Docker Compose workflows.

Caveats

  • The docker compose up command can still be used, which means there might be cases where containers are not labeled with the Seabreeze-specific label. (Fall back to heuristic if label is missing?)
@secondtruth secondtruth changed the title Add up Command Add up and down Commands Jun 21, 2024
@secondtruth secondtruth added the feature New feature or request label Jun 21, 2024
@secondtruth secondtruth added the brainstorming This post is about collecting ideas. label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brainstorming This post is about collecting ideas. feature New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant