openstack-helm-images/fluentd/build.sh
Steve Wilkerson add885b9a8 OSH-Images: Add fluentd image with systemd plugin
This adds a custom fluentd-kubernetes-daemonset image with the
systemd plugin for consuming logs for things like the kubelet
and docker directly from systemd.  This uses version 1.4.2 of the
image as the base

Change-Id: Icfad220fa7c243eab45cf5ece4244f75200a0812
2019-05-22 10:41:18 -05:00

15 lines
429 B
Bash
Executable File

#!/bin/bash
SCRIPT=`realpath $0`
SCRIPT_DIR=`dirname ${SCRIPT}`
## Only build from main folder
cd ${SCRIPT_DIR}/..
IMAGE="fluentd"
VERSION=${VERSION:-latest}
DISTRO=${DISTRO:-debian}
REGISTRY_URI=${REGISTRY_URI:-"openstackhelm/"}
EXTRA_TAG_INFO=${EXTRA_TAG_INFO:-""}
docker build -f ${IMAGE}/Dockerfile.${DISTRO} --network=host -t ${REGISTRY_URI}${IMAGE}:${VERSION}-${DISTRO}${EXTRA_TAG_INFO} ${extra_build_args} ${IMAGE}
cd -