-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (59 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
61 lines (59 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
librisync-build:
build:
context: .
dockerfile: Dockerfile
args:
- BUILDKIT_INLINE_CACHE=1
- GIT_REPO=${GIT_REPO:-}
- GIT_BRANCH=${GIT_BRANCH:-main}
- BUILD_TYPE=${BUILD_TYPE:-debug}
- BUNDLE_TYPE=${BUNDLE_TYPE:-apk}
- APP_VERSION=${APP_VERSION:-}
- GITHUB_RELEASE=${GITHUB_RELEASE:-}
- KEYSTORE_FILE=${KEYSTORE_FILE:-}
- KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD:-}
- KEY_ALIAS=${KEY_ALIAS:-}
- KEY_PASSWORD=${KEY_PASSWORD:-}
image: librisync:latest
container_name: librisync-builder
volumes:
# Mount output directory to get build artifacts
- ./build-output:/output
# Optional: Mount source for development (comment out for production builds)
# - .:/app
environment:
- ANDROID_SDK_ROOT=/opt/android-sdk
- ANDROID_HOME=/opt/android-sdk
- ANDROID_NDK_HOME=/opt/android-sdk/ndk/29.0.14033849
- JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
# Override command if needed
# command: ["bash", "-c", "echo 'Custom build command'"]
# Development service - for interactive shell access
librisync-dev:
build:
context: .
dockerfile: Dockerfile
target: builder
image: librisync:dev
container_name: librisync-dev
volumes:
- .:/app
- build-cache:/app/android/build
- gradle-cache:/root/.gradle
- cargo-cache:/usr/local/cargo/registry
- rust-target-cache:/app/native/rust-core/target
environment:
- ANDROID_SDK_ROOT=/opt/android-sdk
- ANDROID_HOME=/opt/android-sdk
- ANDROID_NDK_HOME=/opt/android-sdk/ndk/29.0.14033849
- JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
working_dir: /app
command: ["bash"]
stdin_open: true
tty: true
volumes:
build-cache:
gradle-cache:
cargo-cache:
rust-target-cache: