stemn / stemn-ci-prototype

A Docker container for the Stemn Continuous Integration Pipeline
https://dev.stemn.com
0 stars 0 forks source link

wget Multiple Files #2

Open jmwright opened 6 years ago

jmwright commented 6 years ago

I'm reworking my KiCAD converter to be a Docker container with the same structure as this one. In the prepare stage I'm having to do this to download multiple files.

wget -i /input/input.url -P /output/

The freecad provider in this repo assumes one file.

When downloading multiple files this way the question then becomes, if we don't explicitly set an output filename, how does the conversion script know what file to convert? I can hard code the sample filename for now, but at some point we'll have to figure out how to handle this.

sabrehagen commented 6 years ago

True, the output filename would be unknown unless you specified it explicitly. The way I'd do this is as part of the next step in the pipeline, I'd have a readInputFiles function that lists the contents of the /input directory, filters for the files it's interested in (e.g. *.fcstd), then operate on those files.

This way you don't need to specify an explicit filename. However, depending on your requirements, you may need to specify an exact filename. If that's the case, we can think up a solution to that.