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:
parent
1dab77178d
commit
0bc553fbe4
@ -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
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user