Download files from any public URL to /data/out/files
.
baseUrl
(required) -- common part of URLpath
(required) -- path part of URL (futureproof to allow row configs)maxRedirects
(optional) -- maximum number of redirects to follow{
"parameters": {
"baseUrl": "https://www.google.com/",
"path": "favicon.ico"
}
}
This will save Google favicon into /data/out/files/favicon.ico
.
docker-compose run --rm dev composer install --prefer-dist --no-interaction
data/
directory using Sandbox API call (replace YOURTOKEN
with your Storage API token). curl --request POST --url https://syrup.keboola.com/docker/sandbox --header 'Content-Type: application/json' --header 'X-StorageApi-Token:YOURTOKEN' --data '{"configData": { "parameters": {"baseUrl": "https://www.google.com/","path": "favicon.ico"}}}'
docker-compose run --rm dev
Run the complete CI build
docker-compose run --rm dev composer ci
or just the tests
docker-compose run --rm dev composer tests