insad
(Alberto Smulders)
November 10, 2022, 4:41pm
1
Some technical question …
Is it possible to bundle patches together with a Tutor plugin and apply them, instead of loading them from github? See tutor-contrib-videoupload/openedx-dockerfile-post-git-checkout at master · insad/tutor-contrib-videoupload · GitHub for an example, I would like to bundle that patchfile with my plugin and apply, not having it downloaded from github.
regis
(Régis Behmo )
November 11, 2022, 10:31am
2
You would need to do the following:
include the git patch file as a template
render it next to the openedx Dockerfile (see ENV_TEMPLATE_ROOTS and ENV_TEMPLATE_TARGETS )
Copy it in the Dockerfile at build-time with COPY ./my.patch ./my.patch
(using the same " **openedx-dockerfile-post-git-checkout" patch that you currently use)
Apply it with RUN cat my.patch | git am
insad
(Alberto Smulders)
November 12, 2022, 8:38pm
3
Thanks Régis, I’ll try this out.