-
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.
- Loading branch information
Showing
21 changed files
with
1,113 additions
and
996 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
static/modules | ||
.env |
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 |
---|---|---|
|
@@ -129,4 +129,5 @@ dmypy.json | |
.idea/dynamic.xml | ||
.idea/uiDesigner.xml | ||
|
||
static/modules | ||
static/modules | ||
docker-compose.override.yml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,10 +1,19 @@ | ||
FROM python:3.10-alpine3.15 | ||
ENV PYTHONUNBUFFERED 1 | ||
FROM python:3.12.2-bookworm | ||
ENV PYTHONFAULTHANDLER=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONHASHSEED=random \ | ||
PIP_NO_CACHE_DIR=off \ | ||
PIP_DISABLE_PIP_VERSION_CHECK=on \ | ||
PIP_DEFAULT_TIMEOUT=100 \ | ||
OAUTHLIB_INSECURE_TRANSPORT=1 | ||
ENV ENV docker | ||
STOPSIGNAL SIGINT | ||
RUN apk update && apk add --no-cache git bash yarn curl | ||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
RUN apt update && apt install -y git bash yarn curl gcc build-essential yarn | ||
RUN curl -sSL install.python-poetry.org | POETRY_HOME=/opt/poetry python - | ||
ENV PATH /opt/poetry/bin:$PATH | ||
WORKDIR /logviewer2 | ||
ENTRYPOINT [ "/logviewer2/.docker/entry_point.sh" ] | ||
CMD ["poetry", "run", "webd"] | ||
COPY . . | ||
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi | ||
RUN yarn install --frozen-lockfile | ||
CMD ["poetry", "run", "web"] |
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 was deleted.
Oops, something went wrong.
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,14 @@ | ||
import os | ||
|
||
import sentry_sdk | ||
from sentry_sdk.integrations.excepthook import ExcepthookIntegration | ||
from sentry_sdk.integrations.flask import FlaskIntegration | ||
|
||
from logviewer2.utils import GET_REV | ||
|
||
sentry_sdk.init( | ||
dsn=os.environ.get("SENTRY_DSN", None), | ||
release=GET_REV(), | ||
integrations=[FlaskIntegration(), ExcepthookIntegration(always_run=True)], | ||
traces_sample_rate=1.0 | ||
) |
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
Oops, something went wrong.