Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
:alert: Lints - the mint for IT Professionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary-H9 committed Jul 25, 2024
1 parent c2bae74 commit b4df821
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
max-line-length = 100
max-line-length = 150
extend-ignore = E203, E704
exclude =
venv
Expand Down
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,16 @@ test: build-container

ct:
ct lint --charts chart


super-linter:
docker run -e RUN_LOCAL=true \
-e DEFAULT_BRANCH=main \
-e VALIDATE_ALL_CODEBASE=false \
-e LINTER_RULES_PATH=/ \
-e PYTHON_BLACK_CONFIG_FILE=pyproject.toml \
-e PYTHON_FLAKE8_CONFIG_FILE=.flake8 \
-e PYTHON_ISORT_CONFIG_FILE=pyproject.toml \
-e PYTHON_MYPY_CONFIG_FILE=mypy.ini \
-e VALIDATE_KUBERNETES_KUBECONFORM=false \
-v $(shell pwd):/tmp/lint github/super-linter
8 changes: 4 additions & 4 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ affinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: compute.analytical-platform.service.justice.gov.uk/karpenter-node-pool
operator: In
values:
- gpu-on-demand
- key: compute.analytical-platform.service.justice.gov.uk/karpenter-node-pool
operator: In
values:
- gpu-on-demand

tolerations:
- key: compute.analytical-platform.service.justice.gov.uk/karpenter-node-pool
Expand Down
Empty file modified container/src/usr/local/bin/entrypoint.sh
100644 → 100755
Empty file.
Empty file modified container/src/usr/local/bin/healthcheck.sh
100644 → 100755
Empty file.
Empty file modified container/src/usr/local/bin/init-nginx.sh
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions contrib/Dockerfile.ollama
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM docker.io/ollama/ollama:latest

#checkov:skip=CKV_DOCKER_2
#checkov:skip=CKV_DOCKER_3
RUN <<EOF
# Start Ollama
nohup ollama serve &
Expand Down
3 changes: 2 additions & 1 deletion ollamate/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
For the full list of settings and their values, see
https://docs.djangoproject.com/en/5.0/ref/settings/
"""

import os

import environ
Expand Down Expand Up @@ -62,7 +63,7 @@
"django.contrib.messages",
"django.contrib.staticfiles",
"ollamate",
"streamingapp"
"streamingapp",
# "azure_auth"
]

Expand Down

0 comments on commit b4df821

Please sign in to comment.