-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wiki(request): Docker-Compose Build Instructions for the Revanced-Documentation Wiki #41
Comments
It tends to be a bit long because I wanted to make sure that even a user that is not accustomed to the Terminal could follow the instructions. Of course a minimal guide could be done, if targeting only the experienced users. But anyways, @inotia00 so I think I have completed the instructions for docker-compose. What do you think so far? |
i don't use docker Leave a pull-request in md file format with a bit more refinement |
@thiensniper My friend, what do you think of this for a docker-compose step-by-step for beginners? Since you also seem to be a docker user, I'd appreciate your input. |
Maybe it's good enough? |
I was too busy refactoring the patch code, so I can't add this to the wiki |
No problem, just wanna help out more people use ReVanced and the Extended patches. |
It could be based on this, with your own style to match of course.
I can only speak for Windows 10/11 here:
These are the Windows 10/11
docker-compose
instructions to run the rvx-builder in a clean docker container:Please follow each step carefully and make sure you read everything.
Install
Git
if you don't have it already. If you are not sure, install it.Install and open
Docker Desktop
, it has to be running in the background for you to be able to run the builder container. Wait for it to load completely.If you're running Windows 11, you can open your PowerShell terminal and install both of the above requirements with this command:
After you install both I recommend creating a new empty folder and performing the next steps inside it for better organization.
Right click inside the newly created folder and select "Open in Terminal" or "Open PowerShell Here" in the context menu.
Now that you have a Terminal running, run:
Or manually reopen the Terminal inside the newly created rvx-builder repository folder.
This can take a while, please wait for it to finish.
In your browser open localhost:8000 to access the builder interface.
Your built applications will be located in the revanced folder inside the the rvx-builder folder that is located in the folder you created in step 3.
Once that is done you can also stop Docker Desktop and close your Terminal window now.
In the future when you're running the builder again, after starting Docker Desktop, you can open a Terminal inside the rvx-builder folder and start from step 7.
For advanced users:
Although it's recommended to build with the --no-cache flag, you don't necessarily have to unless you want to update the builder or just being safe, that way it will use the previous image to get you running the builder quickly.
If you run it in this fashion, to update the builder when you want to, open the Terminal inside the rvx-builder folder, do a
git pull
to be sure, and follow thedocker-compose
instructions to build again, and you really have to use the--no-cache
flag this time.Overall this method has the advantage of pulling directly from the repository at the time of build, so you will pull all the most recent commits even if they aren't yet in the release builds.
The main advantage is really the clean environment for building, that should be reproducible in any machine regardless of setup.
Docker is amazing.
The text was updated successfully, but these errors were encountered: