Does Open edX run local host on Mac?

Does Open EDX runs local host on Mac?

You can run Open edX on a Mac, but you’ll have to run it inside a docker container or linux VM. The easiest way would be to use Tutor along with Docker for Mac.

Hi Braden,

First of all, thank you very much for your fast response. I really appreciate it. Are you able to give the steps or join in a call to help?

Best regards

Sure:

  1. Install Docker on your Mac
  2. Increase its RAM to 4+ GB
  3. Follow Quickstart (1-click install) — Tutor documentation

Thank you very much

Hey Braden,

Sorry to disturb you, but if you can please take a look:

Error: Command failed with status 1: docker-compose -f /Users/eduardokruelmabbookpro2021/Library/Application Support/tutor/env/local/docker-compose.yml -f /Users/eduardokruelmabbookpro2021/Library/Application Support/tutor/env/local/docker-compose.prod.yml -f /Users/eduardokruelmabbookpro2021/Library/Application Support/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f /Users/eduardokruelmabbookpro2021/Library/Application Support/tutor/env/local/docker-compose.jobs.yml -f /Users/eduardokruelmabbookpro2021/Library/Application Support/tutor/env/local/docker-compose.jobs.tmp.yml run --rm mysql-job sh -e -c echo “Initialising MySQL…”

mysql_connection_max_attempts=10

mysql_connection_attempt=0

until mysql -u root --password=“Ra0to6DX” --host “mysql” --port 3306 -e ‘exit’

do

mysql_connection_attempt=$(expr $mysql_connection_attempt + 1)

echo " [$mysql_connection_attempt/$mysql_connection_max_attempts] Waiting for MySQL service (this may take a while)…"

if [ $mysql_connection_attempt -eq $mysql_connection_max_attempts ]

then

echo “MySQL initialisation error” 1>&2

exit 1

fi

sleep 10

done

echo “MySQL is up and running”

edx-platform database

mysql -u root --password=“Ra0to6DX” --host “mysql” --port 3306 -e “CREATE DATABASE IF NOT EXISTS openedx;”

mysql -u root --password=“Ra0to6DX” --host “mysql” --port 3306 -e “CREATE USER IF NOT EXISTS ‘openedx’;”

mysql -u root --password=“Ra0to6DX” --host “mysql” --port 3306 -e “ALTER USER ‘openedx’@’%’ IDENTIFIED BY ‘pnOO3Jjz’;”

mysql -u root --password=“Ra0to6DX” --host “mysql” --port 3306 -e “GRANT ALL ON openedx.* TO ‘openedx’@’%’;”

We got it. cache problem. Thanks, man!

1 Like

@Eduardo_Kruel I am also having the same problem with a new installation.
How did you solve this problem?

Hey there. My developer send me all the steps that we did. I hope it helps you :wink: This is the link for Tutor documentation: Local deployment — Tutor documentation

Steps:

Prerequisites:
- Homebrew
- if not installed:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
- make
- make -v
- if not installed:
- install xCode → AppStore
- brew install make
- Python 3.8
- pip --version
- if not installed:
xcode-select --install
sudo easy_install pip
sudo pip install --upgrade pip
- python --version
- if not installed:
xcode-select --install
brew install python3
- Docker
- docker --version
- if not installed:
Redirecting…

- docker-compose
    - docker-compose --version
        - if not installed:
            pip install docker-compose

Installation:
- pip install “tutor[full]”

Usage:
- tutor local quickstart

If the system asks try this

If “pip” is not found try “pip3”

Thank you for the detailed steps. It turned out to be Docker black magic, the problem was solved after restarting Docker.

1 Like

You’re welcome

Does anyone know if this will work on a new Apple silicon M1 Macintosh?

@Tom_Brown Take a look at this thread: Support for ARM64 · Issue #510 · overhangio/tutor · GitHub

You will need to do some additional steps.