hipchat/README.md
2016-05-20 11:24:12 +02:00

30 lines
891 B
Markdown

# Running HipChat4 in Docker
* 1. [Install Docker](https://docs.docker.com/engine/installation/)
* 2. Install [docker-compose](https://docs.docker.com/compose/install/)
```
# curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose
```
* 3. Run the [hipchat](https://hub.docker.com/r/andrey01/hipchat/)
```
git clone https://github.com/arno01/hipchat.git
cd hipchat
docker-compose run -d
```
### Useful alias
Place the following to your ~/.bash_aliases
After that you can issue `hipchat` command
```
alias docker="sudo -E docker"
alias docker-compose="sudo -E docker-compose"
function docker_helper() { { pushd ~/docker/$1; docker-compose rm -fa "$1"; docker-compose run -d --name "$1" "$@"; popd; } }
function hipchat() { { docker_helper $FUNCNAME $@; } }
```