openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
276 stars 228 forks source link

Graduate python3-debian from incubator #197

Closed LucasRoesler closed 4 years ago

LucasRoesler commented 4 years ago

Description

Motivation and Context

Which issue(s) this PR fixes

Fixes openfaas-incubator/python3-debian#10 Fixes openfaas-incubator/python3-debian#7

How Has This Been Tested?

I tested it by creating a new echo function

faas-cli new echo --lang python3-debian

I then built it using

$ faas-cli build -f echo.yml 
$ docker run --rm -d -p 8080:8080 echo:latest
$ curl http://localhost:8080 -d "this is a test message"
this is a test message

I then verified that ADDITIONAL_PACKAGE worked as expected using

faas-cli build -f echo.yml --build-arg ADDITIONAL_PACKAGE='curl build-essential'
$ docker run --rm -d -p 8080:8080 echo:latest
$ curl http://localhost:8080 -d "this is a test message"
this is a test message
$ docker run --rm echo:latest which make
/usr/bin/make

The last command verifies that build-essential installed correctly .

Types of changes

Impact to existing users

Checklist:

alexellis commented 4 years ago

Approved, just need the README table to be updated next.

alexellis commented 4 years ago

In this PR ideally

LucasRoesler commented 4 years ago

@alexellis i just updated the readme

alexellis commented 4 years ago

Thank you for the PR 👍