https://github.com/nomisrev/mainframer-docker
Mainframer setup in docker to easily deploy it on all powerful servers
https://github.com/nomisrev/mainframer-docker
Last synced: about 1 year ago
JSON representation
Mainframer setup in docker to easily deploy it on all powerful servers
- Host: GitHub
- URL: https://github.com/nomisrev/mainframer-docker
- Owner: nomisRev
- License: apache-2.0
- Created: 2017-06-17T14:18:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-17T15:14:40.000Z (about 9 years ago)
- Last Synced: 2025-04-12T11:41:52.676Z (about 1 year ago)
- Size: 8.79 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```bash
ssh-keygen -t rsa -f ~/.ssh/remote-builder -q -N ""
#brew install ssh-copy-id
ssh-copy-id -i ~/.ssh/remote-builder root@192.168.1.1 -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.