Sign inSign up

umids/d2s-bash-exec

By umids

•Updated over 6 years ago

Execute Bash scripts from URL

Image
0

1.8K

umids/d2s-bash-exec repository overview

⁠Get started

Simple container to execute Bash scripts from URL (e.g. hosted on GitHub) in a Ubuntu Docker image⁠.. Mainly used to download datasets for the Data2Services⁠ project.

See the Data2Services documentation⁠ to run d2s-bash-exec as part of workflows to generate RDF knowledge graph from structured data.

⁠Build or pull

docker pull vemonet/d2s-bash-exec
docker build -t vemonet/d2s-bash-exec .

⁠Run

This command will download files in /data/data2services.

docker run -it --rm -v /data/data2services:/data vemonet/d2s-bash-exec https://raw.githubusercontent.com/MaastrichtU-IDS/data2services-download/master/datasets/stitch-sample/download.sh

You can provide an output directory as second parameter

docker run -it --rm -v /data/data2services:/tmp/download vemonet/d2s-bash-exec https://raw.githubusercontent.com/MaastrichtU-IDS/data2services-download/master/datasets/stitch-sample/download.sh /tmp/download

⁠Add a new dataset

Shell scripts are executed to download each dataset. Add your own.

  • Copy and rename the TEMPLATE directory, then change the download.sh accordingly, you will find a lot of simple operations to download files already covered.
  • Use the name of the directory to pass it as a dataset to download.
  • Use $USERNAME and $PASSWORD variables if you need one.

See the Wiki⁠ for more details on common Shell download operations.

Tag summary

Content type

Image

Digest

Size

95.9 MB

Last updated

over 6 years ago

docker pull umids/d2s-bash-exec