Skip to content

Commit

Permalink
Increase memsize for python flask
Browse files Browse the repository at this point in the history
  • Loading branch information
Zijie Wu authored and vtikoo committed Jun 27, 2023
1 parent adcb5cd commit cf5752e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions solutions/python_flask_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ rootfs: appdir
$(MYST) mkcpio appdir rootfs

run:
$(RUNTEST) $(MYST_EXEC) $(OPTS) rootfs /usr/local/bin/python /usr/local/bin/pytest --app-config-path config.json
$(RUNTEST) $(MYST_EXEC) --app-config-path config.json $(OPTS) rootfs /usr/local/bin/python /usr/local/bin/pytest

run_single:
# Run single test for debugging
$(RUNTEST) $(MYST_EXEC) $(OPTS) rootfs /usr/local/bin/python /usr/local/bin/pytest tests/test_instance_config.py::test_egg_installed_paths --app-config-path config.json
$(RUNTEST) $(MYST_EXEC) --app-config-path config.json $(OPTS) rootfs /usr/local/bin/python /usr/local/bin/pytest tests/test_instance_config.py::test_egg_installed_paths

clean:
rm -rf appdir rootfs
3 changes: 2 additions & 1 deletion solutions/python_flask_tests/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"Debug": 1,
"ProductID": 1,
"SecurityVersion": 1,
"MemorySize": "256m",
"MemorySize": "1g",
"MaxAffinityCPUs": 4,
"CurrentWorkingDirectory": "/app/flask",
"ApplicationPath": "/usr/local/bin/python",
"HostApplicationParameters": 1,
Expand Down

0 comments on commit cf5752e

Please sign in to comment.