Mainframer setup in docker to easily deploy it on all powerful servers
In order to build the docker image run following command docker build -t mainframer-docker .
To run the docker image run docker run -d -p 2222:22 mainframer-docker.
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
Content type
Image
Digest
Size
950.4 MB
Last updated
almost 7 years ago
docker pull brianpugh/mainframer