Detect and bail if there are multiple copies of a service's container running #392

Closed
opened 2023-01-24 19:50:20 +00:00 by 3wordchant · 3 comments
Owner

A build using docker-cp-deploy was failing here: https://git.coopcloud.tech/coop-cloud/docker-cp-deploy/src/branch/main/plugin.sh#L58

Seems like this was caused by there being multiple containers running for the service.

We could potentially add a check to docker-cp-deploy to bail if this situation is detected.

CC @aadil @decentral1se

A build using `docker-cp-deploy` was failing here: https://git.coopcloud.tech/coop-cloud/docker-cp-deploy/src/branch/main/plugin.sh#L58 Seems like this was caused by there being multiple containers running for the service. We could potentially add a check to `docker-cp-deploy` to bail if this situation is detected. CC @aadil @decentral1se
3wordchant added the
enhancement
ci/cd
labels 2023-01-24 19:50:20 +00:00
Owner

The strange thing is, I thought 8df80fcd8f/plugin.sh (L44-L49) was for that? I remember @knoflook raising this issue...

The strange thing is, I thought https://git.coopcloud.tech/coop-cloud/docker-cp-deploy/src/commit/8df80fcd8f6e2d5f4c7f61f904305bc804875005/plugin.sh#L44-L49 was for that? I remember @knoflook raising this issue...
Author
Owner

Oh good call, thought I remembered some previous discussion but couldn't find it.

Could it be the config in question is using an old version of the image? The new one is here on Gitea: https://git.coopcloud.tech/coop-cloud/-/packages/container/docker-cp-deploy/latest

Oh good call, thought I remembered some previous discussion but couldn't find it. Could it be the config in question is using an old version of the image? The new one is here on Gitea: https://git.coopcloud.tech/coop-cloud/-/packages/container/docker-cp-deploy/latest
Author
Owner

OK, switched to git.coopcloud.tech/coop-cloud/docker-cp-deploy on the affected pipeline and all is well 😌

OK, switched to `git.coopcloud.tech/coop-cloud/docker-cp-deploy` on the affected pipeline and all is well 😌
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#392
No description provided.