Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add httpevent collector
  • Loading branch information
jmeixensperger committed Mar 25, 2020
commit 3bc7cb7072b8b14373b8d9a61920b42109002a82
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test_helper:

sleep 120
@echo 'Provision splunk container'
docker exec --user splunk provision_splunk_1 sh -c 'cd /opt/splunk;./provision.sh;/opt/splunk/bin/splunk enable listen 9997 -auth admin:changeme;/opt/splunk/bin/splunk add index test_0;/opt/splunk/bin/splunk add index test_1;/opt/splunk/bin/splunk restart'
docker exec --user splunk provision_splunk_1 sh -c 'cd /opt/splunk;./provision.sh;./add_httpevent_collector.sh;/opt/splunk/bin/splunk enable listen 9997 -auth admin:changeme;/opt/splunk/bin/splunk add index test_0;/opt/splunk/bin/splunk add index test_1;/opt/splunk/bin/splunk restart'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use --no-cache option here for docker-comopse instead of introducing more steps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That only works for the build command, so we'd still have to build the image either way (I assume this is the extra step you are referring to).


run_tests:
@echo 'Running the super awesome tests'
Expand Down
2 changes: 1 addition & 1 deletion tests/large/provision/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ RUN sudo apt-get update
RUN echo "installing docker dependencies and development tools" && \
sudo apt-get --assume-yes install curl vim

COPY provision.sh /opt/splunk/
COPY ["provision.sh", "add_httpevent_collector.sh", "/opt/splunk/"]
5 changes: 5 additions & 0 deletions tests/large/provision/add_httpevent_collector.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
HTTP_INPUTS_PATH=/opt/splunk/etc/apps/search/local/inputs.conf
echo "[test]" >> $HTTP_INPUTS_PATH
echo "disabled = 0" >> $HTTP_INPUTS_PATH
echo "token = 00000000-0000-0000-0000-000000000000" >> $HTTP_INPUTS_PATH
echo "indexes = main,test_0,test_1" >> $HTTP_INPUTS_PATH