支持上线UCloud 管理

This commit is contained in:
2024-05-08 14:26:33 +08:00
parent c5e34df2a4
commit 41c992665b
18 changed files with 66 additions and 5 deletions
+6 -3
View File
@@ -2,10 +2,13 @@ FROM dockerproxy.com/library/ubuntu:22.04
ADD dotnet-runtime-3.1.32-linux-x64.tar.gz /root/dotnet
COPY libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb /tmp
COPY nats-server /usr/bin/
COPY service_manage /yuzhen_iot/service_manage/
COPY checksum /usr/bin/
COPY yuzhen_iot /yuzhen_iot/
COPY start.sh /home/
RUN apt update;dpkg --add-architecture i386;apt update;apt install -y --no-install-recommends libstdc++6 lib32stdc++6 libc6:i386 libc6 libgcc-s1 libicu70 liblttng-ust1 zlib1g vim zip unzip;\
dpkg -i /tmp/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb
RUN apt update;dpkg --add-architecture i386;apt update;apt install -y --no-install-recommends libstdc++6 lib32stdc++6 libc6:i386 libc6 libgcc-s1 libicu70 liblttng-ust1 zlib1g vim zip unzip wget openssh-server;\
dpkg -i /tmp/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb;\
echo "PermitRootLogin yes\nPasswordAuthentication yes\n" >> /etc/ssh/sshd_config;\
echo root:123456 |chpasswd
WORKDIR /home
Executable
BIN
View File
Binary file not shown.
Binary file not shown.
+3 -2
View File
@@ -1,6 +1,7 @@
#!/bin/sh
echo "start nats-server"
/usr/bin/nats-server -p 6000 -a 127.0.0.1 &
echo "start ssh"
service ssh start
echo "start scheduler"
/yuzhen_iot/service_manage/manage/app/scheduler
echo "yuzhen exit!"
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+16
View File
@@ -0,0 +1,16 @@
{
"version": 0,
"product": {
"host": "106.75.75.68",
"port": "1883",
"user": "negtlw23meh7r98o|75a1bba657d1|2",
"password": "msi4iwhn3v3308dh",
"auth_mode": 0
},
"ntp": {
"host": "106.75.75.68"
},
"dlp": {
"url": ""
}
}
+9
View File
@@ -0,0 +1,9 @@
title_format = "Horseman A2x Configuration"
permit_write = true
enable_basic_auth = true
enable_tls = false
max_connection = 1
environment = {"TERM" = "xterm-256color"}
address = "0.0.0.0"
port = "8000"
credential = "root:123456"
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,32 @@
{
"programs": [
{
"name": "nats-server",
"command": "/usr/bin/nats-server",
"args": [
"-p",
"6000",
"-a",
"127.0.0.1"
]
},
{
"name": "factory",
"command": "/yuzhen_iot/prod_manage/app/factory",
"args": []
},
{
"name": "manager",
"command": "/yuzhen_iot/service_manage/manage/app/manager",
"args": []
},
{
"name": "frpc",
"command": "/yuzhen_iot/prod_manage/app/frpc",
"args": [
"-c",
"/yuzhen_iot/prod_manage/cfg/frpc.ini"
]
}
]
}