Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible Configuration to Dockerfile #320

Merged
merged 1 commit into from
May 4, 2023

Conversation

zubairshakoorarbisoft
Copy link
Contributor

ISSUE: openedx-unsupported/edx-analytics-dashboard#1328
This PR is part of effort aimed at removing Ansible based configurations and replacing them with Dockerfile. Currently Devstack Docker images are built using Ansible based configurations in the configurations repository. Through this effort we will make sure that the Repo has its own Dockerfile which has all the necessary configurations to setup small production and dev environments.

Steps to run this Image with Devstack:

  • Build the Image locally first using the target dev i.e. docker build -t image-name-of-choice --target dev .
  • After the image is built successfully go to the docker compose file of devstack and replace the existing edx_notes_api image with the one that you built without changing any other configurations there.
  • Run make dev.up.edx_notes_api in the terminal while in the devstack directory.
  • Additional Note: If you face any auth related errors or 500 while accessing edx_notes_api, then also run provisioning for edx_notes_api services.

.dockerignore Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
manage.py Outdated Show resolved Hide resolved
requirements/production.txt Outdated Show resolved Hide resolved
scripts/devstack.sh Outdated Show resolved Hide resolved
scripts/edx_notes_api.sh Outdated Show resolved Hide resolved
Copy link
Member

@aht007 aht007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the review suggestions that I have added, rest of the PR looks good code wise. I will have to test it locally on devstack before I give final approval. Also a thing that popped into my mind while reviewing is that, this service is deployed to production using Dockerfile so we should keep that in mind and also get it reviewed by Owning team and SRE.

Dockerfile Outdated Show resolved Hide resolved
manage.py Outdated Show resolved Hide resolved
@iamsobanjaved iamsobanjaved linked an issue Feb 10, 2023 that may be closed by this pull request
@iamsobanjaved iamsobanjaved force-pushed the feature/ansible-to-docker branch 2 times, most recently from 8990b0e to 50f425f Compare April 26, 2023 21:09
@iamsobanjaved iamsobanjaved force-pushed the feature/ansible-to-docker branch from 50f425f to 36429d9 Compare April 26, 2023 21:16
Copy link
Contributor

@leangseu-edx leangseu-edx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@iamsobanjaved iamsobanjaved merged commit b3cea82 into master May 4, 2023
@iamsobanjaved iamsobanjaved deleted the feature/ansible-to-docker branch May 4, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to Ansible free Docker Image
4 participants