The Easy Way to Mount Tutor Dev Nutmeg

CodeTrade
868 Views

Open edX is a free and open-source online learning platform that can be used to create and deliver courses. Tutor is a tool that makes it easy to set up and manage development environments for Open edX.

After successfully installing the Tutor Dev Nutmeg Release on your system, it's time to mount the Tutor Dev Nutmeg release locally. If you would like to review the installation steps again, please refer to the following link.

Read More: Step-by-Step Installation of Tutor Dev Nutmeg

The Nutmeg release of Open edX is the stable release. This blog post will show you how to mount Tutor Dev Nutmeg, which will give you a fully-functional development environment for the Nutmeg release.

Mounting Process of Tutor Dev Nutmeg

1. Execute QuickStart Command

Before starting the mounting process we have to execute the quickstart command to set up a development environment for Open edX using Tutor. It will create a new directory for your project, download the necessary Docker images, and start the Open edX platform.

$ tutor dev quickstart –help

Tutor-Dev-Nutmeg-1

2. Copy Container Files

In order to mount the files from the local to the container, it is necessary to copy the files of the container into the local system. The following command can be helpful to copy the container’s files:

For example, the following command will copy the /openedx/edx-platform directory from the lms container to the /home/codetrade/edx/tutor_nutmeg/tutor/edx-platform directory on the local machine:

$ tutor dev copyfrom lms /openedx/edx-platform /home/codetrade/edx/tutor_nutmeg/tutor/edx-platform

Tutor-Dev-Nutmeg-2-1

3. Mount the edX-Platform Directory

Execute the given command to mount the edX-platform directory from your local machine into the LMS container when you run the tutor dev quickstart command.

For implicit, we need to follow the given command:

$ tutor dev quickstart --mount=edx-platform

Tutor-Dev-Nutmeg-3

For explicit we need to write the below command:

$ tutor dev quickstart - -mount (CONTAINER_NAME):(HOST_PATH):(CONTAINER_PATH)

For example, the following command will copy the /openedx/edx-platform directory from the lms container to the /home/codetrade/edx/tutor_nutmeg/tutor/orders directory on the local machine. It will be mounted into the /openedx/app directory in the LMS container.

Tutor-Dev-Nutmeg-4

4. Save Changes & Check YML File

After mounting the edx-platform directory from your local machine into the LMS container, you can check the changes in the docker-compose.tmp.yml file.

Tutor-Dev-Nutmeg-5-1

This file is created by Tutor when you run the Tutor dev quickstart command. It contains the updated configuration for the LMS container, including the mounted directory.

To save all these changes permanently, create a new file “docker-compose.override.yml” from the terminal :

$ nano "$(tutor config printroot)/env/dev/docker-compose.override.yml"

Tutor-Dev-Nutmeg-6

Save those exact services of docker-compose.tmp.yml in this new file.

Tutor-Dev-Nutmeg-7

After saving the file, you can stop the running containers with the "tutor dev stop" command and then start them again in detached mode with the "tutor dev start -d" command.

5. Start and Stop Tutor Services

The tutor dev stop command stops all the containers that were started by the "tutor dev quickstart" command.

The "tutor dev start -d" command starts all the containers in detached mode, which means that they will run in the background and you will not see any output from them.

To stop and start the containers, you can run the following commands:

$ tutor dev stop

$ tutor dev start -d

These processes run for all containers for mounting like ecommerce, discovery, payment, orders, accounts, and other plugins containers.

Conclusion

This blog post has shown you how to mount Tutor Dev Nutmeg. This will give you a fully-functional development environment for the Nutmeg release of Open edX. You can use this environment to develop and test your own courses, or to contribute to the development of Open edX itself.

If you want to hire open edX developers to build your project. Hire dedicated and talented open edX developers from CodeTrade, the leading open edX development agency in India, which provides top-notch open edx development services and solutions. Contact CodeTrade now…!

CodeTrade
CodeTrade, a Custom Software Development Company, provides end-to-end SME solutions in USA, Canada, Australia & Middle East. We are a team of experienced and skilled developers proficient in various programming languages and technologies. We specialize in custom software development, web, and mobile application development, and IT services.