Originally created by @mattheys on GitHub (Oct 14, 2024).
Has anyone had any success creating a Docker build environment to output built APK's. I'm looking at building the Android app for myself from the latest source in a consistent way without having to install everything locally.
At the moment it's failing because I need to provide signing keys, I don't know if that's my last issue or just the next one to get past. So if anyone has already done this I'd be grateful.
FROM node:20WORKDIR /buildRUN git clone https://github.com/advplyr/audiobookshelf-app .RUN npm installRUN npm run generateRUN npx cap syncRUN apt update && apt install default-jre android-sdk sdkmanager -yENV ANDROID_HOME=/usr/lib/android-sdkRUN yes | sdkmanager --licensesRUN npx cap build android --androidreleasetype APK
Originally created by @mattheys on GitHub (Oct 14, 2024).
Has anyone had any success creating a Docker build environment to output built APK's. I'm looking at building the Android app for myself from the latest source in a consistent way without having to install everything locally.
At the moment it's failing because I need to provide signing keys, I don't know if that's my last issue or just the next one to get past. So if anyone has already done this I'd be grateful.
```yaml
FROM node:20
WORKDIR /build
RUN git clone https://github.com/advplyr/audiobookshelf-app .
RUN npm install
RUN npm run generate
RUN npx cap sync
RUN apt update && apt install default-jre android-sdk sdkmanager -y
ENV ANDROID_HOME=/usr/lib/android-sdk
RUN yes | sdkmanager --licenses
RUN npx cap build android --androidreleasetype APK
```
@advplyr commented on GitHub (Oct 14, 2024):
I haven't but we have a github workflow that builds APKs you can look at.
https://github.com/advplyr/audiobookshelf-app/blob/master/.github/workflows/build-apk.yml
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @mattheys on GitHub (Oct 14, 2024).
Has anyone had any success creating a Docker build environment to output built APK's. I'm looking at building the Android app for myself from the latest source in a consistent way without having to install everything locally.
At the moment it's failing because I need to provide signing keys, I don't know if that's my last issue or just the next one to get past. So if anyone has already done this I'd be grateful.
@advplyr commented on GitHub (Oct 14, 2024):
I haven't but we have a github workflow that builds APKs you can look at.
https://github.com/advplyr/audiobookshelf-app/blob/master/.github/workflows/build-apk.yml