支持上线UCloud 管理
This commit is contained in:
parent
c5e34df2a4
commit
41c992665b
@ -2,10 +2,13 @@ FROM dockerproxy.com/library/ubuntu:22.04
|
|||||||
ADD dotnet-runtime-3.1.32-linux-x64.tar.gz /root/dotnet
|
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 libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb /tmp
|
||||||
COPY nats-server /usr/bin/
|
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/
|
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;\
|
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
|
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
|
WORKDIR /home
|
||||||
|
|
||||||
|
Binary file not shown.
5
start.sh
5
start.sh
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "start nats-server"
|
echo "start ssh"
|
||||||
/usr/bin/nats-server -p 6000 -a 127.0.0.1 &
|
service ssh start
|
||||||
|
|
||||||
echo "start scheduler"
|
echo "start scheduler"
|
||||||
/yuzhen_iot/service_manage/manage/app/scheduler
|
/yuzhen_iot/service_manage/manage/app/scheduler
|
||||||
echo "yuzhen exit!"
|
echo "yuzhen exit!"
|
BIN
yuzhen_iot/prod_manage/app/factory
Executable file
BIN
yuzhen_iot/prod_manage/app/factory
Executable file
Binary file not shown.
BIN
yuzhen_iot/prod_manage/app/frpc
Executable file
BIN
yuzhen_iot/prod_manage/app/frpc
Executable file
Binary file not shown.
BIN
yuzhen_iot/prod_manage/app/gotty
Executable file
BIN
yuzhen_iot/prod_manage/app/gotty
Executable file
Binary file not shown.
BIN
yuzhen_iot/prod_manage/app/plumber
Executable file
BIN
yuzhen_iot/prod_manage/app/plumber
Executable file
Binary file not shown.
16
yuzhen_iot/prod_manage/cfg/Prod_connect.json
Executable file
16
yuzhen_iot/prod_manage/cfg/Prod_connect.json
Executable 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
yuzhen_iot/prod_manage/cfg/gotty.conf
Executable file
9
yuzhen_iot/prod_manage/cfg/gotty.conf
Executable 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"
|
0
yuzhen_iot/service_manage/ftp/log_storage/log
Normal file
0
yuzhen_iot/service_manage/ftp/log_storage/log
Normal file
BIN
yuzhen_iot/service_manage/manage/app/manager
Executable file
BIN
yuzhen_iot/service_manage/manage/app/manager
Executable file
Binary file not shown.
BIN
yuzhen_iot/service_manage/manage/app/scheduler
Executable file
BIN
yuzhen_iot/service_manage/manage/app/scheduler
Executable file
Binary file not shown.
32
yuzhen_iot/service_manage/manage/cfg/UserProgram.json
Normal file
32
yuzhen_iot/service_manage/manage/cfg/UserProgram.json
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
0
yuzhen_iot/service_manage/traffic_manage/app_files
Normal file
0
yuzhen_iot/service_manage/traffic_manage/app_files
Normal file
Loading…
x
Reference in New Issue
Block a user