docker-splunk
docker-splunk copied to clipboard
Image with OpenJDK11
As a developer I would like to test certain integrations with Splunk DB Connect which requires JDK 11. I would benefit from a non default image with OpenJDK11 pre-installed for example by adding -openjdk to the end of the version tags with that installed
@rfaircloth-splunk please pardon my ignorance. Are you unable to achieve the same using Environment Variable JAVA_VERSION=openjdk:11
Ref: https://splunk.github.io/splunk-ansible/ADVANCED.html#supported-environment-variables
Yes however is potentially flaky and adds to startup time a constain correctly starting should not change itself really it should not be root to be able to do so
I'm thinking about this but considering the wider question of what would be the best way to let the Ansible setup script run in CI to produce a pre-baked image which can have a quick startup time in production (in Kubernetes in our case).
So far the best (untested) workaround I came up with is:
- Run the Docker image with the right config files and env vars in CI with secrets from a KMS
- Watch the log output and keep checking for
Ansible playbook complete, will begin streaming splunkd_stderr.log - Stop the container
- Use
docker committo create an image - Push the image to a private image repo
Is there any better way to manage this?
But also, I concur with Ryan that it would be good to have root disabled or maybe even have a mostly read-only instance in production (at least I would prefer not having any config possible to change runtime for any role other than a main Splunk UI instance).