canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Can't get docker_dev_setup.sh to recognize Docker installation

Open gmitter opened this issue 2 years ago • 4 comments

Summary:

Trying to get Quick Start procedure to work using a Mac.

I have done the following:

  1. cloned https://github.com/instructure/canvas-lms.git to a local dir.
  2. Installed docker downloading .dmg and running Docker.app
  3. cd to local dir where canvas-lms is cloned
  4. run ./script/docker_dev_setup.sh

Expected behavior:

Docker should have been setup

Actual behavior:


|\ |\ __ |\ ___ |\ \ / /|\ __ |\
\ \ _|\ \ |\ \ \ \ \ \ \ \ / / | \ |\ \ \ _|
\ \ \ \ \ __ \ \ \ \ \ \ / / / \ \ __ \ _

\ \ _
\ \ \ \ \ \ \ \ \ \ / / \ \ \ \ ||\
\ _
\ _\ _\ _\ _\ _/ / \ _\ ___\
|
__||||||| ||||/ ||||_
|
|

Welcome! This script will guide you through the process of setting up a Canvas development environment. Log file is /Users/gunther/Google Drive/Meu Drive/_Meu Drive Gmail/_Coding/Ambiente Canvas/canvas-lms-master/log/docker_dev_setup.log

It looks like you're using a Mac. Let's set that up.

Checking Dependencies... 2023-08-04 19:00:04.836 mdfind[5641:77553] [UserQueryParser] Loading keywords and predicates for locale "pt_BR" 2023-08-04 19:00:04.836 mdfind[5641:77553] [UserQueryParser] Loading keywords and predicates for locale "pt" 2023-08-04 19:00:04.904 mdfind[5641:77553] Couldn't determine the mapping between prefab keywords and predicates. Docker Desktop is not installed! Refer to https://docs.docker.com/docker-for-mac/install/ for help installing. Once Docker Desktop is installed rerun this script.

/o\ Something went wrong. Check /Users/gunther/Google Drive/Meu Drive/_Meu Drive Gmail/_Coding/Ambiente Canvas/canvas-lms-master/log/docker_dev_setup.log for details. gun

Additional notes:

In the same dir if I run docker, it seems to be working, however I cannot get the canvas script to work. Any thoughts?

gmitter avatar Aug 04 '23 22:08 gmitter

I think we need the contents of /Users/gunther/Google Drive/Meu Drive/_Meu Drive Gmail/_Coding/Ambiente Canvas/canvas-lms-master/log/docker_dev_setup.log to be more help.

Ardena avatar Aug 05 '23 00:08 Ardena

docker_dev_setup.log Here it is

gmitter avatar Aug 07 '23 13:08 gmitter


Docker Dev Setup (Sex 4 Ago 2023 19:10:01 -03):

[1m> It looks like you're using a Mac. Let's set that up.(B[m

[1m> Checking Dependencies...(B[m /o\ Something went wrong. Check /Users/gunther/Google Drive/Meu Drive/_Meu Drive Gmail/_Coding/Ambiente Canvas/canvas-lms/log/docker_dev_setup.log for details.


Docker Dev Setup (Sex 4 Ago 2023 19:13:21 -03):

[1m> It looks like you're using a Mac. Let's set that up.(B[m

[1m> Checking Dependencies...(B[m

[1m> Some additional dependencies need to be installed before continuing.(B[m /o\ Something went wrong. Check /Users/gunther/Google Drive/Meu Drive/_Meu Drive Gmail/_Coding/Ambiente Canvas/canvas-lms/log/docker_dev_setup.log for details.


Docker Dev Setup (Sex 4 Ago 2023 19:17:31 -03):

[1m> It looks like you're using a Mac. Let's set that up.(B[m

[1m> Checking Dependencies...(B[m /o\ Something went wrong. Check /Users/gunther/Google Drive/Meu Drive/_Meu Drive Gmail/_Coding/Ambiente Canvas/canvas-lms/log/docker_dev_setup.log for details.

gmitter avatar Aug 11 '23 14:08 gmitter

You may have hit the same problem I did. ./script/docker_dev_setup.sh uses mdfind to see if Docker.app is available. This isn't a great idea as it assumes the metadata service is crawling your /Applications/ directory which may not be the case and isn't what needs to be checked anyway. To switch to just checking if the docker command exists:

In script/common/utils/docker_desktop_setup.sh go to line 48 and replace

  if [[ -z $(mdfind kind:application Docker.app) ]]; then

with

  if [[ -z $(command -v docker) ]]; then

baylisscg avatar May 02 '24 04:05 baylisscg