Skip to content

Commit 8d3ead5

Browse files
authored
Make gen script add build/run images into func.yaml (#73)
1 parent f3978df commit 8d3ead5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

generate_func.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ pip${PY_VERSION} install wheel
99

1010
python${PY_VERSION} setup.py bdist_wheel
1111

12+
rm -fr test_function
1213
fn init --runtime python test_function || true
14+
15+
echo "build_image: fnproject/python:${PY_VERSION}-dev" >> test_function/func.yaml
16+
echo "run_image: fnproject/python:${PY_VERSION}" >> test_function/func.yaml
17+
1318
pip${PY_VERSION} download -r test_function/requirements.txt -d test_function/.pip_cache
1419

1520
rm -fr test_function/.pip_cache/fdk*

0 commit comments

Comments
 (0)