An open API service indexing awesome lists of open source software.

https://github.com/tedwon/rhq-build

Docker image for building latest RHQ code
https://github.com/tedwon/rhq-build

Last synced: about 1 year ago
JSON representation

Docker image for building latest RHQ code

Awesome Lists containing this project

README

          

rhq-build
=========

Docker image for building latest RHQ code

# HOWTO
## Building in Amazone EC2

#### preparation
```
export EC2_HOSTNAME="ec2-54-186-243-205.us-west-2.compute.amazonaws.com"
```

```
ssh -t -i ~/.ssh/ec2.pem ec2-user@${EC2_HOSTNAME} "\
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm;\
sudo yum -y install wget curl git docker-io;\
sudo service docker start;\
sudo chkconfig docker on"
```

#### docker build
```
ssh -t -i ~/.ssh/ec2.pem ec2-user@${EC2_HOSTNAME} "\
rm -rf rhq-build/;\
git clone git://github.com/gkhachik/rhq-build.git;\
cd rhq-build/;\
sudo docker build -t rhq-build:latest ."
```

#### docker run
```
ssh -t -i ~/.ssh/ec2.pem ec2-user@${EC2_HOSTNAME} "sudo docker run --sig-proxy=false -d -i -t rhq-build:latest"
```

#### docker logs -f
```
export DOCKER_CID="1e944588f29b36864d3ba407951d6ebb74e3a618d41720747f26766c4c254d0e"
```
```
ssh -t -i ~/.ssh/ec2.pem ec2-user@${EC2_HOSTNAME} "sudo docker logs -f ${DOCKER_CID}"
```

you're abosolutely safe to Ctrl+C anytime (the process will continue on server side ;)