6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-06 07:30:40 +00:00

Accelerate Android app build

App building is accelerated by pre-installing packages in docker image.
This commit is contained in:
Régis Behmo 2018-10-03 15:44:02 +02:00
parent 1dab77178d
commit 0bc553fbe4
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,6 @@
# Changelog
- 2018-10-03 [Improvement/Bugfix] Fix and accelerate Android application build
- 2018-10-02 [Improvement] Bump Open edX version to hawthorn.2
- 2018-09-30 [Bugfix] Fix CMS celery worker, including export tasks
- 2018-09-30 [Improvement] Simplify boolean feature flags definition

View File

@ -17,17 +17,21 @@ RUN wget https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_
unzip sdk-tools-linux-${ANDROID_SDK_VERSION}.zip && \
rm sdk-tools-linux-${ANDROID_SDK_VERSION}.zip
# Accept licenses
RUN yes | /openedx/android-sdk/tools/bin/sdkmanager --licenses
# Install android app repo
RUN git clone https://github.com/edx/edx-app-android /openedx/edx-app-android
WORKDIR /openedx/edx-app-android
# Install gradle and all dependencies
RUN ./gradlew -v
RUN ./gradlew tasks
# User-customized config
COPY ./edx.properties ./OpenEdXMobile/edx.properties
RUN mkdir /openedx/config
RUN ln -s /openedx/config/gradle.properties ./OpenEdXMobile/gradle.properties
# Accept licenses
RUN yes | /openedx/android-sdk/tools/bin/sdkmanager --licenses
CMD ./gradlew assembleProdDebuggable && \
cp OpenEdXMobile/build/outputs/apk/prod/debuggable/*.apk /openedx/data/