johnbridges commited on
Commit
66958f4
·
1 Parent(s): 0a7eeac
Files changed (2) hide show
  1. Dockerfile +5 -3
  2. 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://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorLib.git /home/user/code/NetworkMonitorLib && \
76
- git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorLLM.git /home/user/code/NetworkMonitorLLM && \
77
- git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/Mungert69/NetworkMonitorData.git /home/user/code/NetworkMonitorData
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": "Warning",
6
- "Microsoft.Hosting.Lifetime": "Information"
 
7
  }
8
  },
9
- "OpenAIApiKey" :".env",
10
  "EmailEncryptKey": ".env",
11
  "LocalSystemUrl": {
12
- "ExternalUrl": "https://asmonitorsrv.readyforquantum.com",
13
- "IPAddress": "",
14
- "RabbitHostName": "rabbitmq.readyforquantum.com",
15
- "RabbitPort": 55672,
16
- "RabbitInstanceName" : "ASSrv-LLMService",
17
- "RabbitUserName" : "usercommonxf1",
18
- "RabbitVHost" : "/vhostuser",
19
- "UseTls" : true
20
  },
21
- "ServiceID" : "monitor",
22
- "StartThisTestLLM" : true,
23
- "LlmNoInitMessage" : false,
24
- "ServiceAuthKey" : ".env" ,
25
- "LlmModelPath" : "/home/user/code/models/",
26
- "LlmModelFileName" : "Qwen3-4B-Instruct-2507-q8_0.gguf",
27
- "LlmContextFileName" : "context-qwen-3.gguf",
28
- "LlmSystemPrompt" : "system_prompt_qwen_3_run",
29
- "LlmPromptMode" : " -if -sp -no-cnv --simple-io ",
30
- "LlmVersion" : "qwen_3",
31
- "LlmCtxSize" : 12000,
32
- "LlmOpenAICtxSize" : 32000,
33
- "LlmCtxRatio" : 6,
34
- "LlmTemp" : "0.3",
35
- "LlmThreads" : 2,
36
- "LlmSystemPromptTimeout": 1200,
37
- "LlmUserPromptTimeout" : 1200,
38
- "LlmSessionIdleTimeout" : 1440,
39
- "LlmGptModel" : "gpt-4.1-mini",
40
- "LlmHFModelID" : "meta-llama/llama-3.3-70b-instruct",
41
- "LlmHFKey" : ".env",
42
- "LlmHFUrl" : "https://api.novita.ai/v3/openai/chat/completions",
43
- "LlmHFModelVersion" : "llama_3.2",
44
- "IsStream" : false,
45
- "UseFixedPort" : true,
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": ["https://devtranscribe.readyforquantum.com","https://devtranscribe2.readyforquantum.com","https://devtranscribe3.readyforquantum.com"],
56
- "REDIS_PASSWORD" :".env",
57
- "UseTls" : true
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  }