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

Check if running container was launched with compose v1 #619

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

yanokwa
Copy link
Member

@yanokwa yanokwa commented Mar 27, 2024

As shown at https://forum.getodk.org/t/how-to-upgrade-central-from-v1-5-3-to-latest/45797/10

The check disk command doesn't work because even if you have compose v2 installed, if the container was launched with v1, it will have underscores in the name. This patch checks to see if there is a running container with underscores and returns a 1 or 0.

I haven't tested this on a real system, but I have verified the individual docker and grep commands work as expected.

@yanokwa yanokwa changed the base branch from master to next March 27, 2024 18:46
@lognaturel
Copy link
Member

I agree with the approach and have also verified the command. I don't think we need further verification than that.

@lognaturel lognaturel merged commit 1078305 into getodk:next Apr 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants