-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |