-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MRG: Merge pull request #1 from aerosense-ai/fix/fix-dashboard
Improve dashboard
- Loading branch information
Showing
31 changed files
with
1,331 additions
and
7,537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,35 +7,10 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
# This job will only run if the PR has been merged (and not closed without merging). | ||
if: "github.event.pull_request.merged == true && !contains(github.event.pull_request.head.message, 'skipci')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test package is publishable with PyPI test server | ||
uses: JRubics/[email protected] | ||
with: | ||
python_version: "3.9" | ||
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }} | ||
repository_name: "testpypi" | ||
repository_url: "https://test.pypi.org/legacy/" | ||
|
||
- name: Publish latest package to PyPI | ||
uses: JRubics/[email protected] | ||
with: | ||
python_version: "3.9" | ||
poetry_version: "==1.1.12" # (PIP version specifier syntax) | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
ignore_dev_requirements: "yes" | ||
|
||
release: | ||
# This job will only run if the PR has been merged (and not closed without merging). | ||
if: "github.event.pull_request.merged == true && !contains(github.event.pull_request.head.message, 'skipci')" | ||
runs-on: ubuntu-latest | ||
needs: [publish] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM python:3.10-slim | ||
|
||
WORKDIR /workspaces/aerosense-dashboard | ||
|
||
# Install poetry | ||
RUN pip install poetry | ||
RUN poetry config virtualenvs.create false | ||
|
||
# Install python dependencies. Note that poetry installs any root packages by default, but this is not available at this | ||
# stage of caching dependencies. So we do a dependency-only install here to cache the dependencies, then a full poetry | ||
# install post-create to install any root packages. | ||
COPY pyproject.toml poetry.lock ./ | ||
RUN poetry install --no-interaction --no-root | ||
|
||
COPY . . | ||
RUN poetry install | ||
|
||
EXPOSE $PORT | ||
|
||
ARG GUNICORN_WORKERS=1 | ||
ENV GUNICORN_WORKERS=$GUNICORN_WORKERS | ||
|
||
ARG GUNICORN_THREADS=8 | ||
ENV GUNICORN_THREADS=$GUNICORN_THREADS | ||
|
||
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling. | ||
CMD exec gunicorn --bind :$PORT --workers $GUNICORN_WORKERS --threads $GUNICORN_THREADS --timeout 0 app:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# aerosense-dashboard | ||
A panel-based dashboard for the aerosense project | ||
|
||
A `dash`-based dashboard for the Aerosense project. |
Oops, something went wrong.