Commit 59fa5439 authored by David Trudgian's avatar David Trudgian
Browse files

Version option

parent 54fa3846
......@@ -104,3 +104,10 @@ report returned by Clair use the `--jsoon-output` option.
clair-singularity --json-output myimage.img
## Development / Testing
Tests are run using `pytest` and expect there to be:
* A clair server listening at (per docker instructions above).
* Internet access to pull a test image from Singularity Hub
* Singlurity installed, with the `singularity` executable on the `PATH`.
\ No newline at end of file
......@@ -4,6 +4,7 @@ from os import path
import shutil
from multiprocessing import Process
from . import VERSION
from .clair import check_clair, post_layer, get_report, format_report_text
from .util import sha256
from .image import check_image, image_to_tgz, http_server
......@@ -18,8 +19,10 @@ from .image import check_image, image_to_tgz, http_server
@click.option('--bind-port', default=8088,
help='Port that the HTTP server providing image to Clair should listen on')
@click.option('--quiet', is_flag=True, help='Suppress progress messages to STDERR')
@click.argument('image', required=True)
def cli(image, clair_uri, text_output, json_output, bind_ip, bind_port, quiet):
API_URI = clair_uri + '/v1/'
# Check image exists, and export it to a gzipped tar in a temporary directory
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment