Skip to content

Commit

Permalink
added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reuter committed Feb 17, 2021
1 parent 033de9d commit 49c694e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM debian:stable

LABEL Description="vzlogger"

# Dependencies
# https://wiki.volkszaehler.org/software/controller/vzlogger/installation_cpp-version
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install build-essential git-core cmake pkg-config \
subversion libcurl4-openssl-dev libgnutls28-dev libsasl2-dev \
uuid-dev libtool libssl-dev libgcrypt20-dev libmicrohttpd-dev \
libltdl-dev libjson-c-dev libleptonica-dev libmosquitto-dev \
libunistring-dev dh-autoreconf sudo

# Build from volkszaehler/vzlogger
# pass "N" when prompted about adding systemd unit
RUN mkdir /cfg && cd /tmp && \
git clone https://github.com/volkszaehler/vzlogger.git && \
cd vzlogger && \
echo "N\n" | bash ./install.sh

# Setup volume
VOLUME ["/cfg"]

# Run CMD when started
CMD /usr/local/bin/vzlogger --config /cfg/vzlogger.conf

0 comments on commit 49c694e

Please sign in to comment.