This is an example of creating a deployment package with multiple files including some static data in text file.
fission env create --name python --image fission/python-env:0.4.0rc --version 2
zip -jr multifile.zip *.py *.txt
Since there are multiple files, you have to specify an entrypoint to
for the function. Its format is <file name>.<function name>. In our
example, that's main.main, to run function main in main.py.
fission function create --name multifile --env python --code multifile.zip --entrypoint main.main
fission function test --name multifile
You should see the "Hello, world" message.
echo "I said hellooooo!" > message.txt
zip -jr multifile.zip *.py *.txt
fission function update --name multifile --code multifile.zip
fission function test --name multifile
You should now see your new, edited message.