Public | Automated Build

Last pushed: 2 years ago
Short Description
Get Data from a generic REST API, and store it as file in S3 / S3 compatible object storage
Full Description

Usage :

! Use single quotes -e CONST='ddd$kk' for file and dir format, otherwise the $ in the string template are not handled by bash (for FILE_BASE_NAME and DIR_BASE_NAME)

docker run \ 
    -e URL_DATA_TRANSACTION \
    -e REST_POLLING_INTERVAL=10 \
    -e S3_HOST=s3-us-west-2.amazonaws.com \
    -e S3_PORT=443 \
    -e S3_ACCESS_KEY=mykey \
    -e S3_SECRET_KEY=mypassword \
    -e S3_BUCKET=mybucket \
    -e S3_KEY=swissmeteo/data\
        -e FILE_BASE_NAME='myFile-$date.txt'\
        -e FILE_DATE_FORMAT=%Hh%M\
        -e DIR_BASE_NAME='myDir-$date'\
        -e DIR_DATE_FORMAT="%Y-%m-%d"\
    leanbi/generic_rest_to_s3

www.leanbi.ch

Docker Pull Command
Owner
leanbi
Source Repository

Comments (0)