add885b9a8
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
15 lines
429 B
Bash
Executable File
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 -
|