OpenEdx - AWS (EC2 instance)

Steps to install the openedx on aws instance for production ready

Step 1 : Launch any Linux EC2 instance minimum 20GB storage and establish a connection using SSH.

Step 2 : Ensure the installation of prerequisite software - Docker and Docker-compose. Follow the official documentation for installation instructions:

Step 3 : Install additional required dependencies. For example, on Ubuntu, use the following command:

sudo apt install python3 python3-pip libyaml-dev

Step 4 : Execute the primary command to install Tutor on the instance:

pip install "tutor[full]"

Step 5 : Download the binary release :

sudo curl -L "https://github.com/overhangio/tutor/releases/download/v17.0.0/tutor-$(uname -s)_$(uname -m)" -o /usr/local/bin/tutor

Step 6 : Give it permission

sudo chmod 0755 /usr/local/bin/tutor

Step 7 :

Then run the launch command:

tutor local launch

Step 8:

The problem may because your current user does not have the necessary permissions to interact with the Docker daemon.

To resolve this issue, you can follow these steps:

  1. Add your user to the Docker group: This will grant your user the necessary permissions to interact with Docker. You can do this by running the command:

sudo usermod -aG docker $USER

After running this command, you need to log out and log back in so that your group membership is re-evaluated.

If you want to avoid logging out and in again, you can use the following command to apply group changes:

newgrp docker

Then again run the launch command :

tutor local launch

Now it will take some time to download all the docker images and run the container

Last updated

Was this helpful?