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 RUN useradd -u 1000 -m -d /home/user -s /usr/sbin/nologin -g video user
ENV HOME /home/user
WORKDIR /home/user WORKDIR /home/user
VOLUME [ "/tmp" ] VOLUME [ "/tmp" ]
USER user USER user

View File

@ -12,6 +12,7 @@
``` ```
git clone https://github.com/arno01/hipchat.git git clone https://github.com/arno01/hipchat.git
cd hipchat cd hipchat
mkdir data
docker-compose run -d docker-compose run -d
``` ```
@ -21,9 +22,14 @@ Place the following to your ~/.bash_aliases
After that you can issue `hipchat` command After that you can issue `hipchat` command
``` ```
alias docker="sudo -E docker" function docker_helper() {
alias docker-compose="sudo -E docker-compose" 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() {
function hipchat() { { docker_helper $FUNCNAME $@; } } docker_helper "$FUNCNAME" "$@"
}
``` ```