This commit is contained in:
Andy 2018-07-04 10:53:02 +02:00
parent 0890842d49
commit 26bb9d12b1
2 changed files with 11 additions and 4 deletions

View File

@ -18,6 +18,7 @@ RUN apt-get -fy --no-install-recommends install
RUN useradd -u 1000 -m -d /home/user -s /usr/sbin/nologin -g video user
ENV HOME /home/user
WORKDIR /home/user
VOLUME [ "/tmp" ]
USER user

View File

@ -12,6 +12,7 @@
```
git clone https://github.com/arno01/hipchat.git
cd hipchat
mkdir data
docker-compose run -d
```
@ -21,9 +22,14 @@ 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 ~/git/github/$1
docker-compose rm -f "$1"
docker-compose run -u $(id -u):$(id -g) -d --name "$1" "$@"
popd
}
function docker_helper() { { pushd ~/docker/$1; docker-compose rm -fa "$1"; docker-compose run -d --name "$1" "$@"; popd; } }
function hipchat() { { docker_helper $FUNCNAME $@; } }
function hipchat() {
docker_helper "$FUNCNAME" "$@"
}
```