Skip to content

Commit

Permalink
⚡️add PYTHONUNBUFFERED + PYTHONDONTWRITEBYTECODE (#73)
Browse files Browse the repository at this point in the history
* ⚡️add PYTHONUNBUFFERED + PYTHONDONTWRITEBYTECODE

* black fmt with new stable version
  • Loading branch information
TheDen authored Feb 19, 2024
1 parent 4780dd1 commit 19f3efd
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -8,7 +8,9 @@ ENV USERNAME=netchecks \
POETRY_VERSION=1.4.1 \
POETRY_HOME=/home/netchecks/bin/poetry \
POETRY_VENV=/home/netchecks/bin/poetry-venv \
POETRY_CACHE_DIR=/home/netchecks/bin/.cache
POETRY_CACHE_DIR=/home/netchecks/bin/.cache \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1

RUN groupadd --gid ${USER_GID} ${USERNAME} \
&& useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME}
4 changes: 3 additions & 1 deletion operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -8,7 +8,9 @@ ENV USERNAME=netchecks \
POETRY_VERSION=1.4.1 \
POETRY_HOME=/home/netchecks/bin/poetry \
POETRY_VENV=/home/netchecks/bin/poetry-venv \
POETRY_CACHE_DIR=/home/netchecks/bin/.cache
POETRY_CACHE_DIR=/home/netchecks/bin/.cache \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1

RUN groupadd --gid ${USER_GID} ${USERNAME} \
&& useradd --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME}
4 changes: 3 additions & 1 deletion operator/netchecks_operator/config.py
Original file line number Diff line number Diff line change
@@ -45,7 +45,9 @@ class ProbeConfig(BaseModel):
podAnnotations: dict[str, str] = {}
image: ImageConfig = ImageConfig()
resources: dict[str, dict] = {}
verbose: bool = False # Don't enable until the operator has been modified to split stdout and stderr
verbose: bool = (
False # Don't enable until the operator has been modified to split stdout and stderr
)


class Config(BaseSettings):

0 comments on commit 19f3efd

Please sign in to comment.