Update Dockerfile and Terraform configurations: upgrade Ollama version, add log level variable, and set default log level
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
FROM docker.io/ollama/ollama:0.7.1
|
||||
FROM docker.io/ollama/ollama:0.9.6
|
||||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
RUN groupadd --system --gid ${GID} worker && \
|
||||
adduser --system --gid ${GID} --uid ${UID} --home /home/worker worker
|
||||
useradd --system --gid ${GID} --uid ${UID} --home /home/worker worker && \
|
||||
mkdir -p /home/worker && chown worker:worker /home/worker
|
||||
|
||||
WORKDIR /home/worker
|
||||
USER worker
|
||||
|
||||
@@ -113,6 +113,11 @@ resource "kubernetes_deployment" "m3uproxy" {
|
||||
failure_threshold = 10
|
||||
}
|
||||
|
||||
env {
|
||||
name = "LOG_LEVEL"
|
||||
value = var.loglevel
|
||||
}
|
||||
|
||||
env {
|
||||
name = "USERNAME"
|
||||
value_from {
|
||||
|
||||
@@ -14,6 +14,12 @@ variable "tag" {
|
||||
default = "latest"
|
||||
}
|
||||
|
||||
variable "loglevel" {
|
||||
description = "The log level for M3UProxy"
|
||||
type = string
|
||||
default = "warn"
|
||||
}
|
||||
|
||||
variable "maxmind_account_id" {
|
||||
description = "Maxmind account ID"
|
||||
type = string
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user