Build from fork of edx-platform

tutor images build openedx
–build-arg EDX_PLATFORM_REPOSITORY=https://github.com/fengyingbanbo/edx-platform.git
–build-arg EDX_PLATFORM_VERSION=open-release/juniper.master

  Step 8/52 : ARG EDX_PLATFORM_VERSION_DATE=20200505
 ---> Using cache
 ---> 44960200ef1d
Step 9/52 : RUN mkdir -p /openedx/edx-platform &&     echo "Pulling $EDX_PLATFORM_VERSION tag from $EDX_PLATFORM_REPOSITORY ($EDX_PLATFORM_VERSION_DATE)" &&     git clone $EDX_PLATFORM_REPOSITORY --branch $EDX_PLATFORM_VERSION --depth 1 /openedx/edx-platform
 ---> Using cache
 ---> 14f8fcfd0068
Step 10/52 : WORKDIR /openedx/edx-platform
 ---> Using cache
 ---> f8ec12fb5577
Step 11/52 : RUN curl https://github.com/overhangio/edx-platform/commit/0d4f6cc3433013960b28e963c4094ef2a2a92f04.patch | git apply -
 ---> Running in 677ec6f53f92
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6655  100  6655    0     0   1410      0  0:00:04  0:00:04 --:--:--  1411
error: patch failed: cms/djangoapps/contentstore/views/tests/test_videos.py:452
error: cms/djangoapps/contentstore/views/tests/test_videos.py: patch does not apply
error: patch failed: cms/djangoapps/contentstore/views/videos.py:10
error: cms/djangoapps/contentstore/views/videos.py: patch does not apply
The command '/bin/sh -c curl https://github.com/overhangio/edx-platform/commit/0d4f6cc3433013960b28e963c4094ef2a2a92f04.patch | git apply -' returned a non-zero code: 1
Error: Command failed with status 1: docker build -t docker.io/overhangio/openedx:3.12.6 /Users/gaoyu/Library/Application Support/tutor/env/build/openedx --build-arg EDX_PLATFORM_REPOSITORY=https://github.com/fengyingbanbo/edx-platform.git --build-arg EDX_PLATFORM_VERSION=open-release/juniper.mastertutor --build-arg EDX_PLATFORM_REPOSITORY=https://github.com/fengyingbanbo/edx-platform.git --build-arg EDX_PLATFORM_VERSION=open-release/juniper.master

@fengyingbanbo,
You should check the Dockerfile,

$ cat .local/share/tutor/env/build/openedx/Dockerfile

Because there are different values ?? For example

ARG EDX_PLATFORM_REPOSITORY=https://github.com/edx/edx-platform.git
ARG EDX_PLATFORM_VERSION=open-release/juniper.3

and the other patches ?

I thought that it was clear from the documentation that you shouldn’t fork edx-platform from the open-release/juniper.master branch, but I was wrong, so I added more words to the docs: https://github.com/overhangio/tutor/commit/d2d5532386335dfe458630aa0f29a237d24b9f26

tl;dr: you should fork edx-platform from the open-release/juniper.3 tag.

2 Likes

thanks,i will try the open-release/juniper.3 tag