Merge pull request #13540 from Budibase/fix/13535
Fix docker-compose/docker compose error in Budibase CLI
This commit is contained in:
commit
d1ca5c4455
|
@ -54,11 +54,9 @@ export async function downloadDockerCompose() {
|
||||||
|
|
||||||
export async function checkDockerConfigured() {
|
export async function checkDockerConfigured() {
|
||||||
const error =
|
const error =
|
||||||
"docker/docker-compose has not been installed, please follow instructions at: https://docs.budibase.com/docs/docker-compose"
|
"docker has not been installed, please follow instructions at: https://docs.budibase.com/docs/docker-compose"
|
||||||
const docker = await lookpath("docker")
|
const docker = await lookpath("docker")
|
||||||
const compose = await lookpath("docker-compose")
|
if (!docker) {
|
||||||
const composeV2 = await lookpath("docker compose")
|
|
||||||
if (!docker || (!compose && !composeV2)) {
|
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue