AndBible / and-bible

AndBible: Bible Study
https://andbible.org
GNU General Public License v3.0
595 stars 197 forks source link

[Developer-documentation] Add Instructions on Building in the Terminal via Docker #2092

Open oxr463 opened 2 years ago

oxr463 commented 2 years ago
# Fetch source
git clone https://github.com/AndBible/and-bible.git
cd and-bible

# Run Android SDK container
docker run --rm --user root -v $(pwd):/usr/src/and-bible -it runmymind/docker-android-sdk:alpine-standalone /bin/sh

# Add extra dependencies required for development
apk add git npm

# Set permissions to the android user:group
chown -R android:android /usr/src/and-bible

# Switch to android user
su - android

# Navigate to the source directory
cd /usr/src/and-bible

# Set environment variable
export ANDROID_SDK_ROOT="/opt/android-sdk-linux"

# Compile a debug image
./gradlew assembleDebug

Reference(s):

Originally posted as a comment, (See: https://github.com/AndBible/and-bible/pull/2091#issuecomment-1037382934).

tuomas2 commented 2 years ago

We can add Dockerifle to the project root too in case someone wants to build inside docker.

oxr463 commented 2 years ago

I can submit a quick PR for that.