Skip to content

LuminarLeaf/Infinity-For-Reddit-Builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infinity for Reddit Docker Build

This workspace contains the necessary files to build the Infinity for Reddit Android app locally using Docker.

Setup

  1. Create a API application here with the following settings:

    • Name: {YourRedditUsername}s-app
    • Type: installed app
    • Redirect URI: http://127.0.0.1
  2. Clone this repository and copy the .env.example file to .env.

    git clone
    cd Infinity-For-Reddit-Builder
    cp .env.example .env
  3. Replace your_api_token and your_reddit_username in the .env file with the API token and your Reddit username respectively.

  4. Build and run the Docker container using Docker Compose.

    docker-compose up
  5. After the build is complete, copy the built APK to your host machine.

    docker cp infinity-build:/Infinity.apk .
  6. Install the APK on your Android device.

Note: The first build will take some time because gradle will download all the dependencies. The subsequent builds will be faster.

New Update?

To rebuild the APK the next time simply run the following command to build the APK and then copy it to your host machine.

Warning: This only works if you still have the container, if not, you will have to rebuild the container again

docker start infinity-build
...
docker cp infinity-build:/Infinity.apk .

Dockerfile

The Dockerfile uses the Azul Zulu OpenJDK 11 image as the base image, installs the required dependencies, and sets up the Android SDK.

Entrypoint Script

The entrypoint.sh script fetches the source code, injects your Reddit API token and Reddit username into the source code, and also uses @TanukiAI's keystore to sign the APK.

Credits

  • u/HostileEnemy for making the Infinity for Reddit app.
  • u/AllMFHH for the colab notebook which I used to build this Dockerfile.
  • Original post by u/AllMFHH about the colab notebook: Reddit Post
  • TanukiAI for the keystore used to sign the APK.
  • Azul Systems for the Azul Zulu OpenJDK 11 image.

About

A Docker instance to build Infinity-For-Reddit using own API key

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published