Skip to content

Commit 3d824cc

Browse files
author
hide
committed
chore: README
1 parent a5b4d77 commit 3d824cc

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# AndroidRemoteBuildWithDocker
22

33
If you build Android project on MacBook or other laptops, you must think your computer performance is not enough. Your laptop battery is not enough as well. And you must spend a lot time on waiting it.
4-
So you may want a powerful and portable workstation. It is impossible. But you can build on remote PC.
5-
The trouble on me as well. But I have fixed it. I used to build with [Mainframer](https://github.com/buildfoundation/mainframer) on my powerful desktop.
6-
It is a problem that Mainframer configuring is not simple. In case I want to build on a cloud service or a new computer, tremendous steps of configuration make me feel tired. Whereas a virtualization technology , such as `Docker` and `Kubernetes`, is very efficient that I've used it in everywhere.
7-
In this repo, I make a docker image for a **builder server** that contains Android environment and [Mainframer](https://github.com/buildfoundation/mainframer). You can deploy a google cloud or amazon cloud server for your remote and powerful building. On the other hand, , you can run on your desktop in case you have a powerful/high-performance PC with your laptop under one LAN. It works on not only **terminal** but also **Android Studio**.
4+
So you may want a powerful and portable workstation. It is impossible. But you can build on remote desktop.
5+
The trouble on me as well but I fixed it. I used to take a remote-build with [Mainframer](https://github.com/buildfoundation/mainframer) on my powerful desktop.
6+
It is a problem that Mainframer configuring with Android will spend lost time. In case of building with a cloud service or new desktop, tremendous steps of configuration make me feel tired. Whereas a virtualization technology , such as `Docker` and `Kubernetes`, which I've used in everywhere is very efficient and easy in backup.
7+
In this repo, I make a docker image for a **builder server** that contains Android environment and [Mainframer](https://github.com/buildfoundation/mainframer). You can deploy a google cloud or amazon cloud server for your remote and powerful building. Furthermore, you can run on your desktop in case you have a powerful/high-performance PC with your laptop under one LAN. It works on not only **terminal** but also **Android Studio**.
88

9-
# Server configuration
9+
## Server configuration
1010
<details><summary>click to expand</summary>
1111

1212
First step is building docker image. In your terminal, run this command `docker build -t mainframer-docker .`
1313

1414
Last step is starting it: run `docker run --restart always -d -p 23:22 mainframer-docker`.
1515

16-
Now, if there is no error, run `docker container ls | grep mainframer-dockers` to detect if it is started. May everything is very well.
16+
Now, if there is no error, run `docker container ls | grep mainframer-docker` to detect if it is started. May everything is very well.
1717
</details>
1818

19-
# Client configuration
19+
## Client configuration
2020
<details><summary>click to expand</summary>
2121
Beside the project specific setup we need 2 more things, an ssh-key that is used to easily communicate between client and server. And a ssh configuring for our server.
2222

@@ -75,7 +75,7 @@ For android you can now just copy the mainframer folder and rename it `.mainfram
7575

7676
</details>
7777

78-
### In addition
78+
## In addition
7979

8080
**How to install other sdk?**
8181
Modify Dockerfile to rebuild. Or follow these steps:
@@ -85,4 +85,9 @@ Modify Dockerfile to rebuild. Or follow these steps:
8585
3. by the time you entered the bash on your docker container, run `/sdk/tools/bin/sdkmanager--install "ndk;21.0.6113669" --channel=3`.
8686

8787
**Mainframer also can build other kind of project**
88-
You can fork this project to edit `Dockerfile` to make it work for your project.
88+
You can fork this project to edit `Dockerfile` to make it work for your project.
89+
90+
91+
92+
### Other features of Mainframer:
93+
[mainframer/v2.1.0 doc](https://github.com/buildfoundation/mainframer/tree/v2.1.0/samples/gradle-android)

0 commit comments

Comments
 (0)