hipchat/README.md

36 lines
851 B
Markdown
Raw Normal View History

2016-04-14 10:05:21 +00:00
# Running HipChat4 in Docker
2016-04-14 09:34:11 +00:00
* 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
2018-07-04 08:53:02 +00:00
mkdir data
2016-04-14 09:34:11 +00:00
docker-compose run -d
```
2016-05-20 09:24:12 +00:00
### Useful alias
Place the following to your ~/.bash_aliases
After that you can issue `hipchat` command
```
2018-07-04 08:53:02 +00:00
function docker_helper() {
pushd ~/git/github/$1
docker-compose rm -f "$1"
docker-compose run -u $(id -u):$(id -g) -d --name "$1" "$@"
popd
}
2016-05-20 09:24:12 +00:00
2018-07-04 08:53:02 +00:00
function hipchat() {
docker_helper "$FUNCNAME" "$@"
}
2016-05-20 09:24:12 +00:00
```