Sign inSign up

brianpugh/mainframer

By brianpugh

Updated almost 7 years ago

Remote Builder

Image
0

307

brianpugh/mainframer repository overview

mainframer-docker

Mainframer setup in docker to easily deploy it on all powerful servers

Build server

In order to build the docker image run following command docker build -t mainframer-docker .

  • The docker image is setup to build go, clang, gcc, buck, rust, gradle and gradle android projects. If you want to make your docker image smaller you can comment out what you don't need in the Dockerfile.

To run the docker image run docker run -d -p 2222:22 mainframer-docker.

Client

Beside the project specific setup we need 2 more things, an ssh-key in order to make communication between client and server easier to maintain. And a ssh config for our server.

ssh-keygen -t rsa -f ~/.ssh/remote-builder -q -N ""
#brew install ssh-copy-id
ssh-copy-id -i ~/.ssh/remote-builder [email protected] -p 2222

echo -e "Host REMOTE_BUILDER \n \
           User root \n \
           HostName 192.168.1.1 \n \
           Port 2222 \n \
           IdentityFile ~/.ssh/remote-builder \n \
           PreferredAuthentications publickey \n \
           ControlMaster auto \n \
           ControlPath /tmp/%r@%h:%p \n \
           ControlPersist 1h" >> ~/.ssh/config

REPLACE IP ADDRESS

To SSH to the docker container: ssh REMOTE_BUILDER

For android you can now just copy the mainframer folder and rename it .mainframer and you should be go to run bash ./mainframer.sh ./gradlew assembleDebug.

And now enjoy faster builds

DEFAULT USER ROOT:ROOT IS USED IN THIS SETUP.

Tag summary

Content type

Image

Digest

Size

950.4 MB

Last updated

almost 7 years ago

docker pull brianpugh/mainframer