I have built custom template and made some database changes with a page on my local computer,
Now I want to pack all the changes in the container and move them to the production server via docker,
I have done some steps but no use , nor templates or functionities worked.
Steps I have done:
1.I changed codes and added custom template
2. I have built image and pushed it docker.io
3. I changed production servers’ docker image with - tutor config save --set DOCKER_IMAGE_OPENEDX=docker.io/myusername/openedx:mytag command (I replaced the image with my custom).
4. I built the image and stoped and started services.
but no use, not template files fetched by image or database changes.
Output of tutor images pull openedx command this gives me permission error I use it with sudo then I get > You are running Tutor as root. This is strongly not recommended. If you are doing this in order to access the Docker daemon, you should instead add your user to the ‘docker’ group. (see Linux post-installation steps for Docker Engine | Docker Docs)
@regis after fixig permission I built the image and run tutor local start (even tutor dev runserver lms) I got this error : "Access denied for user ‘openedx’@‘172.18.0.7’
I used “sudo” then services run, but no use for changes, nor themes fetched nor MySQL’s data.
I think the all problem is related permissions, How can I properly use permission without sudo?.
Is there any user with docker full permissions?.
How can I manage permission?
You should almost never run Tutor as root. When you run “sudo” then tutor is run from a different project root, with a different config.yml file, and thus different configuration values (DOCKER_IMAGE_OPENEDX for instance).
Stop everything:
sudo tutor local stop
sudo tutor dev stop
From then on don’t run “sudo” ever again.
tutor local stop
tutor dev stop
Second, you are running tutor v13, thus your for of edx-platform should be based on top of the Maple branch. Given that you have DOCKER_IMAGE_OPENEDX=docker.io/{My docker username}/openedx:lilac.3 it looks like you made your fork on top of the Lilac branch. This is not going to work.
Start back from scratch and do things slowly and carefully. You’ll get there.
@regis, thank you very much for replying,
I did all things as you said,
Currently, I have completed some tasks on my local computer and I want to update them for my AWS server,
While developing new features I used volumes after compilation of tasks, I build a new image and pushed it to my docker hub account, on the AWS side I pulled the image and build it, but there is no changes I made, I have controlled the changes entering to it with docker exec -it tutor_local_cms-worker_1 /bin/bash command,