Skip to content

cgp-chksum produces md5sum and sha512sum of a file, and optionally POST results

License

Notifications You must be signed in to change notification settings

cancerit/dockstore-cgp-chksum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dockstore-cgp-chksum

dockstore-cgp-chksum generates md5sum and sh512sum of a file and optionally use cURL to PUT the result to a server. This has been packaged specifically for use with the Dockstore.org framework.

Docker Repository on Quay

Build Status : master Build Status : develop

Inputs are:

  1. -i File: A file from which md5sum and sha512sum are generated;
  2. -p URL: Optional. PUT address to send the JSON file to;
  3. -H String: Optional. List of headers to include in the PUT request;
  4. -E cURL_exit_code: Optional. List of cURL exit codes. If cURL command exits with any of the code, the whole tool still exits 0;
  5. -A: Optional. A flag to suppress all cURL exit codes - the tool will exit 0 regardless cURL's exit status;
  6. -j File: Optional. A json file to use as the chksum output, i.e. the tool will skip chksum generating step.

Outputs are:

  1. *.check_sums.json: A JSON file where checksums are stored
  2. *.server_response.txt: A text file contains PUT server response

LICENCE

Copyright (c) 2017 Genome Research Ltd.

Author: Cancer Genome Project cgpit@sanger.ac.uk

This file is part of dockstore-cgp-chksum.

dockstore-cgp-chksum is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

  1. The usage of a range of years within a copyright statement contained within this distribution should be interpreted as being equivalent to a list of years including the first and last year specified and all consecutive years between them. For example, a copyright statement that reads ‘Copyright (c) 2005, 2007- 2009, 2011-2012’ should be interpreted as being identical to a statement that reads ‘Copyright (c) 2005, 2007, 2008, 2009, 2011, 2012’ and a copyright statement that reads ‘Copyright (c) 2005-2012’ should be interpreted as being identical to a statement that reads ‘Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012’."

About

cgp-chksum produces md5sum and sha512sum of a file, and optionally POST results

Resources

License

Stars

Watchers

Forks

Packages

No packages published