{"id":13522501,"url":"https://github.com/customink/ruby-vips-lambda","last_synced_at":"2025-03-31T22:31:32.892Z","repository":{"id":39091898,"uuid":"181573413","full_name":"customink/ruby-vips-lambda","owner":"customink","description":"AWS Lambda Layer for Ruby Libvips Gem","archived":true,"fork":false,"pushed_at":"2022-07-03T19:44:39.000Z","size":26,"stargazers_count":38,"open_issues_count":2,"forks_count":14,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-03-25T12:54:10.005Z","etag":null,"topics":["aws","aws-lambda","image-processing","lambda-layer","libvips","rails","ruby","ruby-on-rails","vips"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/customink.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-15T22:17:29.000Z","updated_at":"2024-06-24T13:39:45.000Z","dependencies_parsed_at":"2022-08-19T06:22:02.849Z","dependency_job_id":null,"html_url":"https://github.com/customink/ruby-vips-lambda","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fruby-vips-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fruby-vips-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fruby-vips-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/customink%2Fruby-vips-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/customink","download_url":"https://codeload.github.com/customink/ruby-vips-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552507,"owners_count":20795826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","image-processing","lambda-layer","libvips","rails","ruby","ruby-on-rails","vips"],"created_at":"2024-08-01T06:00:48.097Z","updated_at":"2025-03-31T22:31:32.551Z","avatar_url":"https://github.com/customink.png","language":"Dockerfile","funding_links":[],"categories":["Layers"],"sub_categories":["Utilities"],"readme":"# Ruby Libvips Lambda Layer\n\n\u003ca href=\"https://github.com/customink/lamby\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/2381/59363668-89edeb80-8d03-11e9-9985-2ce14361b7e3.png\" alt=\"Lamby: Simple Rails \u0026 AWS Lambda Integration using Rack.\" align=\"right\" width=\"300\" /\u003e\u003c/a\u003eAre you using the [ruby-vips](https://github.com/libvips/ruby-vips) or [image_processing](https://github.com/janko/image_processing) gems with a Lambda microservice? Maybe you are using [Lamby](https://github.com/customink/lamby) to deploy your entire Rails application to AWS Lambda with its simple Rack integration? If yes to any of the above, this [Lambda Layer](https://aws.amazon.com/blogs/compute/working-with-aws-lambda-and-lambda-layers-in-aws-sam/) is just for you.\n\n**[Lamby: Simple Rails \u0026 AWS Lambda Integration using Rack.](https://github.com/customink/lamby)**\n\n## Installation\n\nThis project assumes the use of Lambda Containers. It uses a bare `alpine` Docker image to distribute the `/opt` directory contents which can be installed easily within your project. Please browse this project's [Layer Containers](https://github.com/orgs/customink/packages?repo_name=ruby-vips-lambda\u0026q=layer) for a matching version number. For example:\n\n```dockerfile\nFROM ghcr.io/customink/ruby-vips-lambda-layer:8.12.2.1 AS ruby-vips-lambda\nFROM public.ecr.aws/lambda/ruby:2.7\nCOPY --from=ruby-vips-lambda /opt /opt\n```\n\n## Amazon Linux 2\n\nThe master branch of this repo is targeted for the Amazon Linux 2. Most all dependencies needed for `libvips` have to be installed and packaged. Please reference sharp's [installation instructions](https://sharp.pixelplumbing.com/install) for full details.\n\n## Methodology\n\nSimplicity, isolation, and compact! We followed the [docs](https://libvips.github.io/libvips/install.html) for `libvips` install. Our build script uses `public.ecr.aws/sam/build-nodejs16.x` Docker image from the [Amazon ECR Public Gallery](https://gallery.ecr.aws) project as our build environment. All build commands are located in the `Dockerfile` which install all the dependencies for libvips in the `/opt` directory. This includes common file format openers and savers as well as libs that ensure libvips is fast. The current version built is `8.12.2` and easy to configure by providing the `VIPS_VERSION` environment variable during the build and deploy scripts.\n\n## Build\n\nIf you wanted to build your own `/opt` directory contents for a Lambda Layer usable by the ZIP packaging formation. You can build the project like so after cloning it. Make sure you have Docker installed.\n\n```shell\nVIPS_VERSION=8.12.2 PACKAGE_VERSION=1 ./bin/build\n```\n\n## Contents\n\nCurrent size of the layer's `/opt` directory is around around `32MB` in size. To see view the contents, exec into one of the [Layer Containers](https://github.com/orgs/customink/packages?repo_name=ruby-vips-lambda\u0026q=layer)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomink%2Fruby-vips-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustomink%2Fruby-vips-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomink%2Fruby-vips-lambda/lists"}