There is a race condition in oscpd where it sometimes fails to scan
because of a threading issue. While that is resolved upstream, we
set the max number of threads to 1 to avoid it.
This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1368896
Closes: #692
Approved by: rhatdan
As more scanners besides openscap become available, atomic
can now begin to leverage them. The new scan function has
been broken out into its on file (scan.py).
The scan command itself now defaults to openscap but can
also be switched to blackduck with --scanner.
Atomic now can use a configuration file which is stored
in /etc/atomic.conf. The location of the atomic conf
file can be overriden with the environment variable
'ATOMIC_CONF'. In the case of the scan function,
we need the scanner defined in the configuration file
as well as the fully qualified image name and the
scan arguments. Optionally, you can provide additional
custom docker arguments for the scanner as well