Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
/ linuxbrew-lambda Public archive

💀 Used to transfer bottles from CircleCI to BinTray and GitHub

Notifications You must be signed in to change notification settings

Linuxbrew/linuxbrew-lambda

Repository files navigation

AWS Lambda function for LinuxbrewTestBot

This AWS Lambda function receives a webhook notification from CircleCI, downloads the artifacts for that build, and uploads them to BinTray and their SHA256 to GitHub.

It uses Linuxbrew, ruby, git and ssh on AWS Lambda.

Notes

brew config

HOMEBREW_VERSION: >1.1.0 (no git repository)
ORIGIN: https://github.com/Linuxbrew/brew
HEAD: a8dff1fe61193bacfd8416e8cd024803a59802d0
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 72349992f3f8c6d47ed76ee26d854e63e7550d42
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /tmp/brew
HOMEBREW_REPOSITORY: /tmp/brew
HOMEBREW_CELLAR: /tmp/brew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: dual-core 64-bit haswell
Homebrew Ruby: 2.2.2 => /var/task/bin/ruby
Clang: N/A
Git: 2.4.3 => /tmp/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python => /usr/bin/python2.7
Ruby: /var/task/bin/ruby
Java: openjdk version "1.8.0_101"
Kernel: Linux 4.4.35-33.55.amzn1.x86_64 x86_64 GNU/Linux
OS glibc: 2.17
OS gcc: N/A
Linuxbrew glibc: N/A
Linuxbrew gcc: N/A
Linuxbrew xorg: N/A

Troubleshooting using Docker

The Docker image lambci/lambda is useful for troubleshooting this tool.

Execute a GET request

docker run --rm -v "$PWD":/var/task lambci/lambda:nodejs4.3 'index.handler' '{ "httpMethod": "GET" }'

An interactive prompt

docker run -it --rm -v "$PWD":/var/task --entrypoint /bin/bash lambci/lambda:nodejs4.3