A Docker image FROM ruby:latest with `gem update` && `gem install filestack` for Filestack's SDK
367
Built from:
FROM ruby:latest
RUN set -x \
&& gem update \
&& gem install filestack
WORKDIR /usr/src/app
CMD ["irb"]
As part of the Content Cookbook blog series at Filestack.com, there are some special image tags meant for you to follow along with what you're reading in the blog posts.
A simple example of uploading a file from disk, this image actually includes a picture ready-to-go. You just need to pass in your APIKEY to run this example upload, with an environment variable like this:
docker run -it --rm --name fsrubyexample -e APIKEY=PutYourAPIKeyHere filestack/ruby:example
Read more about the code in the :example tag in the blog post here:
https://blog.filestack.com/content-cookbook/upload-files-with-ruby/
A more complex example of uploading a file, this time by passing in a valid public URL for the file we want to upload, rather than using one stored on the local disk.
docker run -it --rm --name fsrubyexample -e APIKEY=PutYourAPIKeyHere -e URL="https://url/goes/here/" filestack/ruby:example
Content type
Image
Digest
Size
344 MB
Last updated
almost 8 years ago
docker pull filestack/ruby