tk3369 / aws-lambda-container-julia Goto Github PK
View Code? Open in Web Editor NEWAn example of running Julia program as AWS Lambda using container image
License: MIT License
An example of running Julia program as AWS Lambda using container image
License: MIT License
Hey, Tom. Thanks for the awesome tutorial! I've found this package from the YouTube video. I cloned the repo and I tried running the
sudo docker build -t julia-lambda:latest . && sudo docker run -it --rm -p 9000:8080 julia-lambda:latest
The building part seems to work, but when I try to run the run
part I get the following error:
docker: Error response from daemon: driver failed programming external connectivity on endpoint silly_goldstine (dd5a05f3ad78ec34509a38283a046e8011c9e852e24171a98f8437e3f792142c): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9000 -j DNAT --to-destination 172.17.0.2:8000 ! -i docker0: iptables v1.8.7 (nf_tables): unknown option "--dport"
Try `iptables -h' or 'iptables --help' for more information.
(exit status 2)).
Any idea on what might be going on?
I was attempting to modify this repo for an internal project, and ran into this issue. I then decided to just build and push up master
here. When I attempt to test run the Lambda function on AWS I get the error:
START RequestId: e053eccc-2487-4b5b-891c-a6102b0f9c05 Version: $LATEST
/lambda-entrypoint.sh: line 14: /var/runtime/bootstrap: Permission denied
/lambda-entrypoint.sh: line 14: exec: /var/runtime/bootstrap: cannot execute: Permission denied
END RequestId: e053eccc-2487-4b5b-891c-a6102b0f9c05
REPORT RequestId: e053eccc-2487-4b5b-891c-a6102b0f9c05 Duration: 2.50 ms Billed Duration: 3 ms Memory Size: 4096 MB Max Memory Used: 7 MB
RequestId: e053eccc-2487-4b5b-891c-a6102b0f9c05 Error: Runtime exited with error: exit status 126
Runtime.ExitError
I've tried to do a chmod +x bootstrap
after this in the Dockerfile. Same result ๐.
It seems that creating this bootstrap
file which does a cd /var/task
and runs you script is the correct thing to do according to the documentation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.