Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladholubiev/docker-in-aws-lambda
Run Docker containers in AWS Lambda
https://github.com/vladholubiev/docker-in-aws-lambda
aws-lambda docker serverless
Last synced: about 2 months ago
JSON representation
Run Docker containers in AWS Lambda
- Host: GitHub
- URL: https://github.com/vladholubiev/docker-in-aws-lambda
- Owner: vladholubiev
- License: mit
- Created: 2017-06-03T17:56:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-27T07:53:23.000Z (about 7 years ago)
- Last Synced: 2024-06-04T21:59:10.300Z (4 months ago)
- Topics: aws-lambda, docker, serverless
- Language: Shell
- Size: 3.91 KB
- Stars: 85
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Read this blog post on Medium for details: How Did I “Hack” AWS Lambda to Run Docker Containers
# Show me the code
`ubuntu-demo.sh` script is in the repo. It will run an example command `cat /etc/os-release` which shows it's a real Ubuntu.
How can I run it?
If you want to use it in the project, just spawn a process with the script in any language you prefer.
Or you can try it right away with [lambdash](https://github.com/alestic/lambdash):
```sh
$ lambdash "export HO... # paste code below"
```## ubuntu-demo.sh
```sh
export HOME=/tmp
export UDOCKER_DIR=/tmp
export UDOCKER_BIN=/tmp
export UDOCKER_LIB=/tmp
export UDOCKER_CONTAINERS=/tmpcd /tmp
# Installation
curl https://raw.githubusercontent.com/indigo-dc/udocker/udocker-fr/udocker.py > udocker
python udocker version# Pull the image
python udocker pull ubuntu:17.04# Setup a container
python udocker create --name=ubuntu ubuntu:17.04
python udocker setup --execmode=F1 ubuntu# Run it!
python udocker run ubuntu cat /etc/os-release
```## Similar Projects
Check out a bit more sophisticated project based on same ideas - [SCAR](https://github.com/grycap/scar). It wraps abovementioned commands into a framework shell, but not only.