Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Build using existing script. 😩 [LINK](https://pastebin.com/uGHtzQq7)
- 2. Clone repository to build server and build using docker 😩 [Pastebin - LINK](https://pastebin.com/r9dd9Pf3) [OpenAI Solution](https://chatgpt.com/c/940abada-5884-4d69-b2c1-1c60ba15af5c)
- 1. change what's inside Dockerfile to `RUN ./gradlew assembleProductionGoogleRelease`
- 2. edit bullseye_deps.sh to include:
- ```
- # bullseye_deps.sh
- apt-get update
- apt-get install -y openjdk-17-jdk # or openjdk-11-jdk if you prefer
- # Other dependencies installation
- ```
- 3. ensure correct **JAVA_HOME** in Dockerfile
- ```
- # Deps
- COPY bullseye_deps.sh /deps.sh
- RUN /deps.sh && rm /deps.sh
- # Volume
- VOLUME /ga
- # Env
- ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 # Change this path based on your Java version
- ENV ANDROID_HOME=/opt
- # Cache Gradle
- COPY gradle /gradle
- COPY gradlew /gradlew
- RUN ./gradlew --version && rm -rf /gradle*
- # Entry point
- COPY entrypoint.sh /entrypoint.sh
- ENTRYPOINT ["/entrypoint.sh"]
- ```
- 4. **Update entrypoint.sh**
- ```
- #!/bin/sh
- # Ensure JAVA_HOME is set
- export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
- # Navigate to the project directory
- cd /ga
- # Run the Gradle build with the correct task
- ./gradlew assembleProductionGoogleRelease
- ```
- - Even after editing these, it failed 😩 [PASTEBIN](https://pastebin.com/8KLGdtRZ)
- 3. **Pull the Docker image** 😩 [PASTEBIN](https://pastebin.com/2ekUXdkk)
- 1. `docker pull greenaddress/android && docker run -it -v $PWD:/ga greenaddress/android`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement