Sign inSign up

filestack/ruby

By filestack

•Updated almost 8 years ago

A Docker image FROM ruby:latest with `gem update` && `gem install filestack` for Filestack's SDK

Image
1

396

filestack/ruby repository overview

⁠Filestack Ruby SDK

Built from:

FROM ruby:latest

RUN set -x \
    && gem update \
    && gem install filestack

WORKDIR /usr/src/app

CMD ["irb"]

⁠Special Docker Image Tags

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.

⁠:example

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/⁠

⁠:upload-url

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

⁠GitHub Repository for Filestack's Ruby SDK Source

https://github.com/filestack/filestack-ruby⁠

Tag summary

Content type

Image

Digest

Size

344 MB

Last updated

almost 8 years ago

docker pull filestack/ruby