{"id":23003742,"url":"https://github.com/stechstudio/bref-extensions","last_synced_at":"2025-04-02T14:25:07.187Z","repository":{"id":150649766,"uuid":"169151385","full_name":"stechstudio/bref-extensions","owner":"stechstudio","description":"Build tools for compiling binaries and extensions against the bref layer.","archived":false,"fork":false,"pushed_at":"2019-09-11T18:20:07.000Z","size":28118,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-08T05:27:45.846Z","etag":null,"topics":[],"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/stechstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-04T21:18:09.000Z","updated_at":"2021-11-15T13:03:01.000Z","dependencies_parsed_at":"2023-06-12T06:30:15.203Z","dependency_job_id":null,"html_url":"https://github.com/stechstudio/bref-extensions","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Fbref-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Fbref-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Fbref-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stechstudio%2Fbref-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stechstudio","download_url":"https://codeload.github.com/stechstudio/bref-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246830017,"owners_count":20840737,"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":[],"created_at":"2024-12-15T07:15:12.411Z","updated_at":"2025-04-02T14:25:07.182Z","avatar_url":"https://github.com/stechstudio.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bref-extensions\nWe use ghostscript, imagemagick, and libvips extensively in lambda. These executables, along with imagick and vips PHP extensions, are compiled to run on top of a bref (PHP 7.3) layer.\n\n## Usage\nTo use this layer you need to import the appropriate bref layer into your Lambda first. For example using AWS SAM:\n\n```yaml\nAWSTemplateFormatVersion: '2010-09-09'\nTransform: AWS::Serverless-2016-10-31\nResources:\n    DemoFunction:\n        Type: AWS::Serverless::Function\n        Runtime: provided\n        Properties:\n            [...]\n            Layers:\n                - 'arn:aws:lambda:us-east-1:209497400698:layer:php-73:2'\n                - 'arn:aws:lambda:us-east-1:965741605173:layer:sts-bref-extensions:2'\n```\nThis will make the following available to your bref based project:\n```\nsh-4.2# pwd\n/opt/bin\n\nsh-4.2# ls -al\ntotal 8\ndrwxr-xr-x 1 root root 4096 Feb  5 19:33 .\ndrwxr-xr-x 1 root root 4096 Feb  5 19:33 ..\nlrwxrwxrwx 1 root root   20 Feb  5 19:33 convert -\u003e /opt/sts/bin/convert\nlrwxrwxrwx 1 root root   15 Feb  5 19:33 gs -\u003e /opt/sts/bin/gs\nlrwxrwxrwx 1 root root   21 Feb  5 19:33 identify -\u003e /opt/sts/bin/identify\nlrwxrwxrwx 1 root root   17 Feb  5 19:33 vips -\u003e /opt/sts/bin/vips\nlrwxrwxrwx 1 root root   26 Feb  5 19:33 vipsthumbnail -\u003e /opt/sts/bin/vipsthumbnail\n\nsh-4.2# convert --version\nVersion: ImageMagick 6.9.10-10 Q16 x86_64 2019-02-05 https://www.imagemagick.org\nCopyright: © 1999-2018 ImageMagick Studio LLC\nLicense: https://www.imagemagick.org/script/license.php\nFeatures: Cipher DPC HDRI OpenMP\nDelegates (built-in): bzlib jng jpeg lcms png tiff xml zlib\n\nsh-4.2# gs --version\n9.26\n\nsh-4.2# identify --version\nVersion: ImageMagick 6.9.10-10 Q16 x86_64 2019-02-05 https://www.imagemagick.org\nCopyright: © 1999-2018 ImageMagick Studio LLC\nLicense: https://www.imagemagick.org/script/license.php\nFeatures: Cipher DPC HDRI OpenMP\nDelegates (built-in): bzlib jng jpeg lcms png tiff xml zlib\n\nsh-4.2# vips --version\nvips-8.7.0-Fri Aug 31 14:11:19 UTC 2018\n```\nas well as the following PHP extensions:\n```\nsh-4.2# pwd\n/opt/sts/modules\n\nsh-4.2# ls -al\ntotal 1288\ndrwxr-xr-x 1 root root    4096 Feb  5 19:17 .\ndrwxr-xr-x 1 root root    4096 Feb  5 19:33 ..\n-rwxr-xr-x 1 root root 1158960 Feb  5 15:57 imagick.so\n-rwxr-xr-x 1 root root  149751 Feb  5 19:17 vips.so\n```\n\n## Installation\n```\n$ git clone git@github.com:stechstudio/bref-extensions.git\n$ cd bref-extensions\n$ git submodule update --init --recursive\n$ make\n```\n\n## Make Targets\n* **config** - Generates a docker file for us by extracting from the bref php build docker file.\n* **php** - Builds the php docker image.\n* **extensions** - Builds the extensions and executables in the php docker image.\n* **zip** - Copys the archived files out of the php docker container.\n* **publish** - Publishes the layer to AWS.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstechstudio%2Fbref-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstechstudio%2Fbref-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstechstudio%2Fbref-extensions/lists"}