Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Docker: daemon only image build helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoppel committed Aug 12, 2019
1 parent be41b1b commit d8edca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build-docker-daemon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build --build-arg GIT_TIME="`git show -s --format=\"%ci\" HEAD`" --build-arg GIT_HASH=`git show -s --format="%H" HEAD` -t cybertec/pgwatch2-daemon:latest -f docker/Dockerfile-daemon .
6 changes: 6 additions & 0 deletions docker/Dockerfile-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ RUN apt-get -q update && apt-get -qy install wget git && apt autoremove -y
ADD pgwatch2 /pgwatch2


# For showing Git versions via :8080/versions or 'pgwatch2 --version'
ARG GIT_HASH
ARG GIT_TIME
ENV GIT_HASH=${GIT_HASH}
ENV GIT_TIME=${GIT_TIME}

###
### Install Go and compile the gatherer daemon
###
Expand Down

0 comments on commit d8edca5

Please sign in to comment.