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

feat: cache edx-platform checkout in image build #1076

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Jun 7, 2024

Similar to what we need with the MFE image, we leverage Docker's ADD directive to implement caching of the edx-platform git checkout step.

See: overhangio/tutor-mfe#163 https://docs.docker.com/reference/dockerfile/#add

Similar to what we need with the MFE image, we leverage Docker's ADD
directive to implement caching of the edx-platform git checkout step.

See: overhangio/tutor-mfe#163
https://docs.docker.com/reference/dockerfile/#add
WORKDIR /openedx/edx-platform
ADD --keep-git-dir=true $EDX_PLATFORM_REPOSITORY#$EDX_PLATFORM_VERSION .
Copy link
Contributor

Choose a reason for hiding this comment

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

In the case where is a remote file URL, the destination will have permissions of 600

curios: can this have an impact on the build and files? I am not sure of default permissions of git clone but saw 755 on my system (on host and within docker image) for various repositories.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly, I'm not sure. We are using this ADD mechanism in the tutor-mfe plugin, and it's working. I suggest that we add this change, and then add the --chown option only if necessary.

@regisb regisb merged commit fc29241 into nightly Jun 10, 2024
2 checks passed
@regisb regisb deleted the regisb/edx-platform-code-cache branch November 21, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants