diff --git a/README.md b/README.md index c888bed926..96b4c037fb 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,14 @@ This is a custom fork of Open edX's docker based development environment, frankl ## Environment configuration -The `OPENEDX_RELEASE` variable should be set in your \*nix environment. Use the following command to set it. +The `OPENEDX_RELEASE` variable should be set in your \*nix environment. Use the following command to set it. Currently, `ironwood.master` and `hawthorn.master` releases of Open edX are supported. ``` -$ export OPENEDX_RELEASE=ironwood.master +export OPENEDX_RELEASE=ironwood.master + +OR + +export OPENEDX_RELEASE=hawthorn.master ``` To avoid doing this everytime, add the above line to your bash or zsh profile. diff --git a/repo.sh b/repo.sh index 21d3da0288..5bb9d57f33 100755 --- a/repo.sh +++ b/repo.sh @@ -32,9 +32,12 @@ repos=( "https://github.com/edx/edx-notes-api.git" "https://github.com/edx/xqueue.git" "https://github.com/edx/edx-analytics-pipeline.git" - "https://github.com/edx/gradebook.git" ) +if [ "${OPENEDX_RELEASE}" == "ironwood.master" ]; then + repos+=("https://github.com/edx/gradebook.git") +fi + private_repos=( # Needed to run whitelabel tests. "https://github.com/edx/edx-themes.git" @@ -106,7 +109,7 @@ _clone () if [ "${SHALLOW_CLONE}" == "1" ]; then git clone --single-branch -b ${OPENEDX_GIT_BRANCH} -c core.symlinks=true --depth=1 ${repo} else - git clone --single-branch -b ${OPENEDX_GIT_BRANCH} -c core.symlinks=true ${repo} + git clone -b ${OPENEDX_GIT_BRANCH} -c core.symlinks=true ${repo} fi fi done diff --git a/wordpress/Dockerfile b/wordpress/Dockerfile index 66313abee3..34d4eca660 100644 --- a/wordpress/Dockerfile +++ b/wordpress/Dockerfile @@ -7,6 +7,7 @@ RUN set -ex; \ \ apt-get update; \ apt-get install -y \ + vim \ unzip \ libjpeg-dev \ libpng-dev \ @@ -66,7 +67,6 @@ RUN set -ex; \ RUN cp -R /usr/src/wordpress/. $WORDPRESS_DIR -ADD --chown=www-data:www-data "https://downloads.wordpress.org/plugin/edunext-openedx-integrator.1.9.0.zip" $WORDPRESS_DIR/wp-content/plugins/ ADD --chown=www-data:www-data "https://downloads.wordpress.org/plugin/advanced-custom-fields.5.7.12.zip" $WORDPRESS_DIR/wp-content/plugins/ ADD --chown=www-data:www-data "https://downloads.wordpress.org/plugin/elementor.2.5.14.zip" $WORDPRESS_DIR/wp-content/plugins/ ADD --chown=www-data:www-data "https://downloads.wordpress.org/plugin/classic-editor.1.4.zip" $WORDPRESS_DIR/wp-content/plugins/