The Dockerfile above runs the following:
- Python 3.7 in Debian Strech
- Sets the working directory as /root
- Copies the provided netskope.yaml file to the /root/ directory
- Installs the sumologic netskop collector using pip3
- Sets the python command to run at the container launch
- Download this git repo and extract it
- Edit the netskope.yaml file:
- Change the SUMO_ENDPOINT:
- Change the TOKEN:
- Change the NETSKOPE_EVENT_ENDPOINT:
- Change the NETSKOPE_ALERT_ENDPOINT:
- Make any other adjustments to your required collector settings in the netskope.yaml
- Build your Docker image:
- Run your Docker image:
- If the container hangs for any reason:
- sudo docker prune
- Setup a crontab to run the container every 5 minutes
- */5 * * * * root /usr/bin/docker run netskope
- 30 * * * * root /usr/bin/docker container prune -f