rsyslog/devtools/devcontainer.sh
Rainer Gerhards a570ddfcd7 dev tools: do not use -ti in docker run
this does not properly work when the script is used in
cron jobs
2018-01-31 11:55:46 +01:00

16 lines
394 B
Bash
Executable File

#!/bin/bash
# This scripts uses an rsyslog development container to execute given
# command inside it.
set -e
DEV_CONTAINER=`cat $RSYSLOG_HOME/devtools/default_dev_container`
printf "/rsyslog is mapped to $RSYSLOG_HOME\n"
docker pull $DEV_CONTAINER
docker run \
-u `id -u`:`id -g` \
-e RSYSLOG_CONFIGURE_OPTIONS_EXTRA \
-e CC \
-e CFLAGS \
-v "$RSYSLOG_HOME":/rsyslog $DEV_CONTAINER $*