Spaces:
Building
Building
Commit
·
66958f4
1
Parent(s):
0a7eeac
- Dockerfile +5 -3
- appsettings.json +58 -46
Dockerfile
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
# Use the official Debian 12 (Bookworm) base image
|
| 2 |
FROM debian:13
|
| 3 |
|
|
@@ -9,6 +10,7 @@ RUN apt-get update && \
|
|
| 9 |
apt-get install -y \
|
| 10 |
build-essential \
|
| 11 |
curl \
|
|
|
|
| 12 |
git \
|
| 13 |
cmake \
|
| 14 |
clang \
|
|
@@ -72,9 +74,9 @@ RUN whoami && dotnet --version
|
|
| 72 |
|
| 73 |
# Clone repositories using the GITHUB_TOKEN secret
|
| 74 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
| 75 |
-
git clone https
|
| 76 |
-
git clone https
|
| 77 |
-
git clone https
|
| 78 |
|
| 79 |
|
| 80 |
# Copy files into the container as the non-root user
|
|
|
|
| 1 |
+
# syntax=docker/dockerfile:1.4
|
| 2 |
# Use the official Debian 12 (Bookworm) base image
|
| 3 |
FROM debian:13
|
| 4 |
|
|
|
|
| 10 |
apt-get install -y \
|
| 11 |
build-essential \
|
| 12 |
curl \
|
| 13 |
+
ca-certificates \
|
| 14 |
git \
|
| 15 |
cmake \
|
| 16 |
clang \
|
|
|
|
| 74 |
|
| 75 |
# Clone repositories using the GITHUB_TOKEN secret
|
| 76 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
| 77 |
+
git clone https://x-access-token:$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorLib.git /home/user/code/NetworkMonitorLib && \
|
| 78 |
+
git clone https://x-access-token:$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorLLM.git /home/user/code/NetworkMonitorLLM && \
|
| 79 |
+
git clone https://x-access-token:$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorData.git /home/user/code/NetworkMonitorData
|
| 80 |
|
| 81 |
|
| 82 |
# Copy files into the container as the non-root user
|
appsettings.json
CHANGED
|
@@ -1,60 +1,72 @@
|
|
| 1 |
{
|
| 2 |
"Logging": {
|
| 3 |
"LogLevel": {
|
| 4 |
-
"Default": "Information",
|
| 5 |
-
"Microsoft": "
|
| 6 |
-
"Microsoft.
|
|
|
|
| 7 |
}
|
| 8 |
},
|
| 9 |
-
"OpenAIApiKey"
|
| 10 |
"EmailEncryptKey": ".env",
|
| 11 |
"LocalSystemUrl": {
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
},
|
| 21 |
-
"ServiceID"
|
| 22 |
-
"StartThisTestLLM"
|
| 23 |
-
"LlmNoInitMessage"
|
| 24 |
-
"ServiceAuthKey"
|
| 25 |
-
"LlmModelPath"
|
| 26 |
-
"LlmModelFileName"
|
| 27 |
-
"LlmContextFileName"
|
| 28 |
-
"LlmSystemPrompt"
|
| 29 |
-
"LlmPromptMode"
|
| 30 |
-
"LlmVersion"
|
| 31 |
-
"LlmCtxSize"
|
| 32 |
-
"LlmOpenAICtxSize"
|
| 33 |
-
"LlmCtxRatio"
|
| 34 |
-
"LlmTemp"
|
| 35 |
-
"LlmThreads"
|
| 36 |
-
"LlmSystemPromptTimeout":
|
| 37 |
-
"LlmUserPromptTimeout"
|
| 38 |
-
"LlmSessionIdleTimeout"
|
| 39 |
-
"LlmGptModel"
|
| 40 |
-
"LlmHFModelID"
|
| 41 |
-
"LlmHFKey"
|
| 42 |
-
"LlmHFUrl"
|
| 43 |
-
"LlmHFModelVersion"
|
| 44 |
-
"IsStream"
|
| 45 |
-
"
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
-
"RabbitPassword" : ".env",
|
| 51 |
"RabbitRoutingKey": "execute.local",
|
| 52 |
"RabbitExchangeType": "direct",
|
| 53 |
"LlmSpaceModelID": "Qwen/Qwen3-1.7B",
|
| 54 |
"LlmUseHF": false,
|
| 55 |
-
"AudioServiceUrls": [
|
| 56 |
-
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
}
|
| 60 |
-
|
|
|
|
| 1 |
{
|
| 2 |
"Logging": {
|
| 3 |
"LogLevel": {
|
| 4 |
+
"Default": "Information",
|
| 5 |
+
"Microsoft": "Information",
|
| 6 |
+
"Microsoft.AspNetCore": "Warning",
|
| 7 |
+
"Microsoft.Hosting.Lifetime": "Warning"
|
| 8 |
}
|
| 9 |
},
|
| 10 |
+
"OpenAIApiKey": ".env",
|
| 11 |
"EmailEncryptKey": ".env",
|
| 12 |
"LocalSystemUrl": {
|
| 13 |
+
"ExternalUrl": "https://asmonitorsrv.readyforquantum.com",
|
| 14 |
+
"IPAddress": "",
|
| 15 |
+
"RabbitHostName": "rabbitmq.readyforquantum.com",
|
| 16 |
+
"RabbitPort": 55672,
|
| 17 |
+
"RabbitInstanceName": "ASSrv-LLMService",
|
| 18 |
+
"RabbitUserName": "usercommonxf1",
|
| 19 |
+
"RabbitVHost": "/vhostuser",
|
| 20 |
+
"UseTls": true
|
| 21 |
},
|
| 22 |
+
"ServiceID": "monitor",
|
| 23 |
+
"StartThisTestLLM": true,
|
| 24 |
+
"LlmNoInitMessage": false,
|
| 25 |
+
"ServiceAuthKey": ".env",
|
| 26 |
+
"LlmModelPath": "/home/user/code/models/",
|
| 27 |
+
"LlmModelFileName": "Qwen3-4B-Instruct-2507-q8_0.gguf",
|
| 28 |
+
"LlmContextFileName": "context-qwen-3.gguf",
|
| 29 |
+
"LlmSystemPrompt": "system_prompt_qwen_3_run",
|
| 30 |
+
"LlmPromptMode": " -if -sp -no-cnv --simple-io ",
|
| 31 |
+
"LlmVersion": "qwen_3",
|
| 32 |
+
"LlmCtxSize": 12000,
|
| 33 |
+
"LlmOpenAICtxSize": 32000,
|
| 34 |
+
"LlmCtxRatio": 6,
|
| 35 |
+
"LlmTemp": "0.3",
|
| 36 |
+
"LlmThreads": 2,
|
| 37 |
+
"LlmSystemPromptTimeout": 2400,
|
| 38 |
+
"LlmUserPromptTimeout": 2400,
|
| 39 |
+
"LlmSessionIdleTimeout": 7200,
|
| 40 |
+
"LlmGptModel": "gpt-4.1-mini",
|
| 41 |
+
"LlmHFModelID": "meta-llama/llama-3.3-70b-instruct",
|
| 42 |
+
"LlmHFKey": ".env",
|
| 43 |
+
"LlmHFUrl": "https://api.novita.ai/v3/openai/chat/completions",
|
| 44 |
+
"LlmHFModelVersion": "llama_3.2",
|
| 45 |
+
"IsStream": false,
|
| 46 |
+
"HFToken": ".env",
|
| 47 |
+
"DataRepoId": "mungert/NetMonLLMDataLive",
|
| 48 |
+
"RedisUrl": "redis.readyforquantum.co.uk:46379",
|
| 49 |
+
"MaxRetries": -1,
|
| 50 |
+
"RabbitPassword": ".env",
|
|
|
|
| 51 |
"RabbitRoutingKey": "execute.local",
|
| 52 |
"RabbitExchangeType": "direct",
|
| 53 |
"LlmSpaceModelID": "Qwen/Qwen3-1.7B",
|
| 54 |
"LlmUseHF": false,
|
| 55 |
+
"AudioServiceUrls": [
|
| 56 |
+
"https://devtranscribe.readyforquantum.com",
|
| 57 |
+
"https://devtranscribe2.readyforquantum.com",
|
| 58 |
+
"https://devtranscribe3.readyforquantum.com"
|
| 59 |
+
],
|
| 60 |
+
"REDIS_PASSWORD": ".env",
|
| 61 |
+
"UseTls": true,
|
| 62 |
+
"UseFixedPort": true,
|
| 63 |
+
"RemoteCache": {
|
| 64 |
+
"Enabled": true,
|
| 65 |
+
"Type": "Http",
|
| 66 |
+
"BaseUrl": "https://cachehttp.readyforquantum.com/api",
|
| 67 |
+
"ApiKey": ".env",
|
| 68 |
+
"TimeoutSeconds": 600,
|
| 69 |
+
"RetryAttempts": 3
|
| 70 |
+
}
|
| 71 |
|
| 72 |
}
|
|
|