From e8ec83a128b978db58668288e54d03abaf1d517d Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Fri, 11 Oct 2024 12:31:20 -0700 Subject: [PATCH] feat: adding apprunner yaml file --- apprunner.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 apprunner.yaml diff --git a/apprunner.yaml b/apprunner.yaml new file mode 100644 index 0000000..f15519b --- /dev/null +++ b/apprunner.yaml @@ -0,0 +1,22 @@ +version: 1.10 # Version of the AppRunner specification +runtime: python311 # Runtime to use + +build: + commands: + build: + - pip3 install . # Install dependencies, assumes your app has a setup.py or pyproject.toml + +run: + runtime-version: 3.11 # Specify Python version + pre-run: + - pip3 install . # Install dependencies before the app starts + command: panel serve src/aind_qc_portal/qc_portal_app.py src/aind_qc_portal/qc_asset_app.py src/aind_qc_portal/qc_app.py --port 8080 --allow-websocket-origin=* --keep-alive 10000 + network: + port: 8080 # Port that AppRunner will expose to the internet + env: # Define environment variables if needed + - name: API_GATEWAY_HOST + value: 'api.allenneuraldynamics-test.org' + - name: DATABASE + value: 'metadata_index' + - name: COLLECTION + value: 'data_assets' \ No newline at end of file