Skip to content

Commit

Permalink
appliance: add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerhards committed Feb 26, 2018
1 parent b613697 commit 196651a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appliance/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3.7
LABEL maintainer="rgerhards@adiscon.com"
COPY rsyslog@lists.adiscon.com-5a55e598.rsa.pub /etc/apk/keys/rsyslog@lists.adiscon.com-5a55e598.rsa.pub
RUN echo "http://build.rsyslog.com/alpine/3.7/unstable" >> /etc/apk/repositories \
RUN echo "http://alpine.rsyslog.com/3.7/stable" >> /etc/apk/repositories \
&& apk --no-cache update \
&& apk add --no-cache \
rsyslog \
Expand Down
25 changes: 25 additions & 0 deletions appliance/alpine/internal/build-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/ash
# This reads the meta config (environment variables) and prepares environment
# variables used by rsyslog.conf so that we can finally startup rsyslog.
# Errors are detected and will lead to abort of the startup.

export CNF_CALL_LOG_TO_LOGFILES=
if [ "$ENABLE_LOGFILES" == "on" ]; then
if [ -z $LOGFILES_STORE ]; then
echo "Error: ENABLE_LOGFILES set, but LOGFILES_STORE not set - please correct"
exit 1
fi
export CNF_CALL_LOG_TO_LOGFILES="call log_to_files"
fi # end LOGFILES

export CNF_CALL_LOG_TO_LOGSENE=
export ENABLE_LOGSENE=off
if [ "$LOGSENE_TOKEN" != "" ]; then
if [ -z $LOGSENE_URL ]; then
echo "Error: LOGSENE_TOKEN set, but LOGSENE_URL not set - please correct"
exit 1
fi
export ENABLE_LOGSENE=on
export CNF_CALL_LOG_TO_LOGSENE="call log_to_logsene"
fi # end LOGSENE
env

0 comments on commit 196651a

Please sign in to comment.