@@ -115,7 +115,7 @@ async function repoFiles(kind='biocontainers', scan_options) {
115115 let destDir = `${ config . workdir } /${ kind } ` ;
116116 let lastCommit = null ;
117117 if ( scan_options . gitSha ) {
118- console . log ( `scan git commit ${ scan_option . gitSha } ` ) ;
118+ console . log ( `scan git commit ${ scan_options . gitSha } ` ) ;
119119 lastCommit = scan_options . gitSha ;
120120 }
121121 if ( fs . existsSync ( destDir ) ) {
@@ -173,7 +173,7 @@ async function getQuayioTags(container, scan_options) {
173173 let page = 1 ;
174174 let url = `${ baseurl } ?page=${ page } ` ;
175175 while ( true ) {
176- console . debug ( 'call' , url )
176+ console . debug ( '[quay.io] call' , url )
177177 try {
178178 let res = await axios . get ( url ) ;
179179 if ( res . data . tags . length == 0 ) {
@@ -185,7 +185,7 @@ async function getQuayioTags(container, scan_options) {
185185 } catch ( err ) {
186186 if ( err . response . status != 404 ) {
187187 quay_errors ++ ;
188- console . error ( '[quayio ][tags] error' , err . response . status , err . response . statusText ) ;
188+ console . error ( '[quay.io ][tags] error' , err . response . status , err . response . statusText ) ;
189189 }
190190 save_tags ( container , tags , 'bioconda' ) ;
191191 return tags ;
@@ -199,7 +199,7 @@ async function getDockerhubTags(container, scan_options) {
199199 let tags = [ ] ;
200200 let url = `https://hub.docker.com/v2/repositories/biocontainers/${ container } /tags` ;
201201 while ( true ) {
202- console . debug ( 'call' , url )
202+ console . debug ( '[docker] call' , url )
203203 try {
204204 let res = await axios . get ( url ) ;
205205 res . data . results . forEach ( tag => {
@@ -506,7 +506,7 @@ async function quayio(containers, scan_options) {
506506 if ( c === undefined || c === null ) {
507507 continue ;
508508 }
509- console . log ( '[quay.io]' , c ) ;
509+ console . log ( '[quay.io][container] ' , c ) ;
510510 let tags = containers [ i ] . tags ;
511511 try {
512512 if ( ! tags || tags . length == 0 ) {
@@ -547,12 +547,12 @@ const options = yargs
547547 . option ( "b" , { alias : "backup" , describe : "Backup containers to internal registry" , type : "boolean" } )
548548 . option ( "s" , { alias : "security" , describe : "Security scan updates" , type : "boolean" } )
549549 . option ( "u" , { alias : "updated" , describe : "Scan only updated containers/tags, else scan all" , type : "boolean" } )
550- . options ( "c" , { alias : "conda" , describe : "check bioconda" , type : "boolean" } )
551- . options ( "g " , { alias : "docker" , describe : "check biocontainers dockerfiles" , type : "boolean" } )
552- . options ( "n " , { alias : "use" , describe : "use specific container for example bioconda:xxx or biocontainers:xxx" } )
553- . option ( "d " , { alias : "dry" , describe : "dry run, do not execute" , type : "boolean" } )
550+ . options ( "c" , { alias : "conda" , describe : "check bioconda" , type : "boolean" } )
551+ . options ( "d " , { alias : "docker" , describe : "check biocontainers dockerfiles" , type : "boolean" } )
552+ . options ( "use " , { describe : "use specific container for example bioconda:xxx or biocontainers:xxx" } )
553+ . option ( "dry " , { describe : "dry run, do not execute" , type : "boolean" } )
554554 . option ( "f" , { alias : "file" , describe : "file path to containers/tags list" } )
555- . option ( "g " , { alias : "gitSha" , describe : "like updated, but scan from related scan sha for updated containers" } )
555+ . option ( "git " , { alias : "gitSha" , describe : "like updated, but scan from related scan sha for updated containers" } )
556556 . argv ;
557557
558558
@@ -627,7 +627,12 @@ getContainers(options).then((containers) => {
627627 await doTheStuff ( container . container , container . tag , container . quay , options )
628628 } )
629629} ) . then ( ( res ) => {
630- console . log ( '[doTheStuff]' , res . results , res . errors )
630+ console . log ( '[doTheStuff]' , res . results . length , res . errors . length )
631+ if ( res . errors . length > 0 ) {
632+ res . errors . forEach ( err => {
633+ console . error ( 'sync error' , err )
634+ } ) ;
635+ }
631636 // cleanup
632637 try {
633638 execSync ( `docker image prune -a` ) ;
0 commit comments