Build and push container images for splunk universal forwarder.
The following make
variables affect building/pushing:
IMAGE_REGISTRY
(defaultquay.io
)IMAGE_REPOSITORY
(defaultapp-sre
)FORWARDER_NAME
(defaultsplunk-forwarder
)HEAVYFORWARDER_NAME
(defaultsplunk-heavyforwarder
)
Images will be tagged and pushed as ${IMAGE_REGISTRY}/${IMAGE_REPOSITORY}/${[HEAVY]FORWARDER_NAME}:${VERSION}-${HASH}-${COMMIT}
, where ${VERSION}
and ${HASH}
are gleaned from .splunk-version and .splunk-version-hash, respectively, and ${COMMIT} is the 7 char short current commit hash of this repository.
Therefore, for local building and testing, you should create personal image repositories and point to them by overriding at least IMAGE_REPOSITORY
.
Build images using make build-forwarder
and make build-heavyforwarder
.
Push images using make push-forwarder
and push-heavyforwarder
.
Run vulnerability checks using make vuln-check
.
This repository builds container images around the splunk universal forwarder at the version and hash specified in the .splunk-version and .splunk-version-hash files, respectively. To build around a new version, simply commit a PR updating those files.
After a PR merges, an integration job is run by app-sre triggering build/push of both images to quay.io/app-sre/splunk-(heavy)forwarder
.
To test the app-sre pipeline:
- Create personal repositories and override variables as described above.
- Obtain credentials from your personal repository and set the
QUAY_USER
andQUAY_TOKEN
variables. - Run
make build-push
.