This gist runs a standalong Splunk server with Add-on Builder pre installed. This is the simplest way to start developing a Splunk Add-on.
Step 1. Install Docker Desktop
This includes Docker Compose which we will use in the next steps.
Step 2. Save this gist
Create a directory called splunk-with-addon-builder and save the file docker-compose.yml from this gist to the directory.
Step 3. Set your SplunkBase credentials
In the file docker-compose.yml you saved, set the variables SPLUNKBASE_USERNAME and SPLUNKBASE_PASSWORD to your SplunkBase credentials. This will allow Add-on Builder (or any other apps) to be downloaded from SplunkBase automatically.
Step 4. Start the server
In a terminal, enter the directory and use Docker Compose to start the server:
cd splunk-with-addon-builder
docker-compose upStep 5. Connect to the server
Wait about 5 minutes for the server to come up, then point your browser to http://localhost:8000
Login with username admin and password password. (To change the password, you can set the SPLUNK_PASSWORD variable in the docker-compose.yml file and restart the server)
When you're done with the server, return to the terminal and press Ctrl-C to stop the server. All changes will be saved.
To remove the server or clear the data to start over, open a terminal, then enter the directory and use Docker Compose to delete the containers and volumes:
cd splunk-with-addon-builder
docker-compose down -v