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 to see if docker compose exists, else error out #1733

Merged
merged 5 commits into from
Oct 4, 2022

Conversation

hubertdeng123
Copy link
Member

One of our most common errors that we're seeing on self-hosted occurs when docker-compose doesn't exist. Our version check then throws an exception.

https://self-hosted.getsentry.net/organizations/self-hosted/issues/16/?query=is%3Aunresolved

This PR adds logic to ensure that we're able to find the version of docker compose and output an error msg to the user when docker compose does not exist.

@hubertdeng123 hubertdeng123 force-pushed the hubertdeng123/check-docker-compose-exists branch from 92bc0b9 to d36e84a Compare October 3, 2022 17:52
@emmatyping
Copy link
Contributor

Can you also add a check that the docker command works as well? I noticed that is a common issue for users (e.g. when the daemon isn't running etc)

@hubertdeng123
Copy link
Member Author

Yep, can add that too

@hubertdeng123 hubertdeng123 force-pushed the hubertdeng123/check-docker-compose-exists branch from 492db93 to d507865 Compare October 4, 2022 18:03
@hubertdeng123
Copy link
Member Author

Changes implemented!

@hubertdeng123 hubertdeng123 merged commit 1920b23 into master Oct 4, 2022
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/check-docker-compose-exists branch October 4, 2022 22:09
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants