-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from jamalex/develop
Additional optimizations (pre-seed entire kolibri data directory, and blacklist unneeded source files)
- Loading branch information
Showing
20 changed files
with
728 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
steps: | ||
- block: "Build :android:?" | ||
if: build.source == "trigger_job" | ||
- label: "Build Android App" | ||
- block: "Build dev APK?" | ||
# Always run if this is a Kolibri release | ||
if: build.env("LE_KOLIBRI_RELEASE") != "true" | ||
|
||
- label: "Build dev APK" | ||
command: ".buildkite/build.sh" | ||
env: KOLIBRI_ANDROID_BUILD_MODE=dev | ||
|
||
- block: "Build release APK?" | ||
# Always run if this is a Kolibri release | ||
if: build.env("LE_KOLIBRI_RELEASE") == "true" | ||
|
||
- label: "Build Release APK :tada:" | ||
command: ".buildkite/build.sh" | ||
env: KOLIBRI_ANDROID_BUILD_MODE=release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
src/kolibri | ||
src/preseeded_kolibri_home | ||
src/extra-packages | ||
tmpenv | ||
whl/* | ||
|
||
# File format for signing key | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:16.04 as build | ||
FROM ubuntu:bionic as build | ||
LABEL maintainer="Learning Equality <[email protected]>" tag="kolibrikivy" | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
|
@@ -14,11 +14,13 @@ RUN dpkg --add-architecture i386 && \ | |
cython \ | ||
gcc \ | ||
git \ | ||
iproute2 \ | ||
libffi-dev \ | ||
libltdl-dev\ | ||
libncurses5:i386 \ | ||
libstdc++6:i386 \ | ||
libtool \ | ||
locales \ | ||
lsb-release \ | ||
openjdk-8-jdk \ | ||
python-dev \ | ||
|
@@ -27,27 +29,43 @@ RUN dpkg --add-architecture i386 && \ | |
wget \ | ||
xclip \ | ||
xsel \ | ||
zip \ | ||
zlib1g-dev \ | ||
zlib1g:i386 \ | ||
python-wxgtk3.0 \ | ||
libgtk-3-dev \ | ||
python3 \ | ||
&& apt-get clean | ||
|
||
# Use java 1.8 because Ubuntu's gradle version doesn't support 1.11 | ||
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 | ||
ENV PATH=$PATH:$JAVA_HOME | ||
|
||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python3 get-pip.py | ||
|
||
# Ensure that python is using python3 | ||
# copying approach from official python images | ||
ENV PATH /usr/local/bin:$PATH | ||
RUN cd /usr/local/bin && \ | ||
ln -s $(which python3) python | ||
|
||
# Allows us to invalidate cache if those repos update. | ||
# Intentionally not pinning for dev velocity. | ||
ADD https://github.com/kollivier/python-for-android/archive/webview_plus.zip p4a.zip | ||
ADD https://github.com/kollivier/pyeverywhere/archive/dev.zip pew.zip | ||
|
||
# install python dependencies | ||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python get-pip.py && \ | ||
pip install cython virtualenv && \ | ||
RUN pip install cython virtualenv && \ | ||
# get kevin's custom packages | ||
pip install -e git+https://github.com/kollivier/pyeverywhere@dev#egg=pyeverywhere && \ | ||
pip install -e git+https://github.com/kollivier/python-for-android@webview_plus#egg=python-for-android && \ | ||
pip install -e git+https://github.com/kollivier/pyeverywhere@p4a_update#egg=pyeverywhere && \ | ||
pip install -e git+https://github.com/kollivier/python-for-android@pew_webview#egg=python-for-android && \ | ||
useradd -lm kivy | ||
|
||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
locale-gen | ||
ENV LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 | ||
|
||
USER kivy:kivy | ||
WORKDIR /home/kivy | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.