Skip to main content

Whisperers as standalone Docker Containers

Whisperers may be run as standalone Docker Containers.

Command

In this case, you need to have Docker (or an alternative) running in your server, and you launch a Whisperer with one command line, attaching the host network interface to it.

docker run -d \
--network host \
--restart unless-stopped \
-e "CONFIG=""$(cat ./whisperer-config.json)""" \
registry.gitlab.com/spider-analyzer/public-images/whisperer

The network option tells Docker to make all network interfaces accessible to the Whisperer container.
The -e loads the Whisperer config file from a local file ./whisperer-config.json (adjust it to your needs) into CONFIG environment variable.

Refer to official Docker run reference documentation for more options.

tip

You may include this command in a shell script and have it restart

Whisperer options

Options may be defined from environment variables:

Name (*: mandatory)DescriptionDefault
CONFIG *JSON configuration value for the Whisperer. May also be mounted as ./whisperer-config.json in the container.
LOGWhen HUMAN, logs will be formatted by Bunyan library for better reading with colors etc.
LOG_LEVELDefine the log level. May be FATAL, ERROR, WARN, INFO, DEBUG, TRACEINFO
HOSTNAME or PARENT_HOSTNAMESent back to the server in the hostname field of status.
Used for proper identification in the UI.
INSTANCE_IDUsed to differentiate replicas of a same Whisperer.
Must be unique by Whisperer.
os.hostname()
CONTAINER_NAMESent back to the server in the containeName field of status.
Used for proper identification in the UI.
HOSTS_TO_RESOLVEMay provide a list of '\n' separated hostnames to resolve and load in cache before starting parsing.
DNSCACHE_HOSTUsed to force a DNS server. Even to connect to Spider server. Specifies its hostname or IP.
DNSCACHE_PORTUsed to force a DNS server. Even to connect to Spider server. Specifies its port.53
CAPTURE_OWN_COMSIf set - whatever value that resolve to true -, the Whisperer will also capture its communications to Spider. DANGEROUS!