github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/image_processing/s3upload/README.md (about) 1 ## Image processing with Ruby Example, Upload to S3 2 3 This example will show you how to process images with a Ruby function, and upload to a S3 bucket. 4 5 ```sh 6 # create your func.yaml file 7 fn init <YOUR_DOCKERHUB_USERNAME>/image-processing 8 9 # build the function 10 fn build 11 12 # test it 13 echo "http://www.sourcecertain.com/img/Example.png" | fn run 14 15 # push it to Docker Hub 16 fn push 17 18 # Create a route to this function on IronFunctions (assuming you have an app called `test`) 19 fn routes create test /image-processing 20 21 # you can now access via curl as well 22 curl -v -X POST http://localhost:8080/r/test/image-processing -d "https://www.nationalgeographic.com/content/dam/science/photos/000/010/1086.ngsversion.1491440409220.adapt.1900.1.jpg" 23 > https://iron-functions-image-resize.s3.amazonaws.com/1086.ngsversion.1491440409220.adapt.1900.1.jpg 24 ``` 25