Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to skip Splunk license agreement page on Containerise the splunk?

$
0
0
I have created a Dockerfile when the container build during that time I need to create multiple login users on backside of Splunk. I am getting splunk agreement issue able unable to skip/accept agreement on build container. Dockerfile FROM splunk/splunk:latest ENV SPLUNK_HOME /opt/splunk RUN apt-get update && apt-get install -y wget COPY ./splunk-launch.conf /opt/splunk/etc/splunk-launch.conf COPY ./splunk.license /opt/splunk/etc/licenses/enterprise/splunk.license COPY ./My-app1 / /opt/splunk/etc/apps/My-app1 COPY ./My-app2 /opt/splunk/etc/apps/My-app2 COPY ./My-app3 /opt/splunk/etc/apps/My-app3 COPY ./splunk_user.sh /opt/splunk/bin/splunk_user.sh RUN chmod +x /opt/splunk/bin/splunk_user.sh RUN chown -R splunk:splunk /opt/splunk/bin/splunk_user.sh EXPOSE 8000/tcp 8089/tcp 8191/tcp 9997/tcp 1514 8088/tcp VOLUME [ “/opt/splunk/etc”, “/opt/splunk/var” ] WORKDIR /opt/splunk/bin CMD [“./splunk_user.sh”] splunk_user.sh ./splunk add user pradeep -password passwd123 -role admin -email pradeep@gmail.com -full-name Pradeep -auth admin:changeme ./splunk add user sankar -password passwd123 -role admin -email sankar@gmail.com -full-name Sankar -auth admin:changeme Error ![alt text][1] [1]: https://i.stack.imgur.com/24Pwk.png

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>