You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# AndroidRemoteBuildWithDocker
2
2
3
3
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**.
8
8
9
-
# Server configuration
9
+
##Server configuration
10
10
<details><summary>click to expand</summary>
11
11
12
12
First step is building docker image. In your terminal, run this command `docker build -t mainframer-docker .`
13
13
14
14
Last step is starting it: run `docker run --restart always -d -p 23:22 mainframer-docker`.
15
15
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.
17
17
</details>
18
18
19
-
# Client configuration
19
+
##Client configuration
20
20
<details><summary>click to expand</summary>
21
21
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.
22
22
@@ -75,7 +75,7 @@ For android you can now just copy the mainframer folder and rename it `.mainfram
75
75
76
76
</details>
77
77
78
-
###In addition
78
+
## In addition
79
79
80
80
**How to install other sdk?**
81
81
Modify Dockerfile to rebuild. Or follow these steps:
@@ -85,4 +85,9 @@ Modify Dockerfile to rebuild. Or follow these steps:
85
85
3. by the time you entered the bash on your docker container, run `/sdk/tools/bin/sdkmanager--install "ndk;21.0.6113669" --channel=3`.
86
86
87
87
**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.
0 commit comments