first commit

This commit is contained in:
liu.chunxun 2024-04-19 10:39:18 +08:00
commit e7e60bcdba
11 changed files with 53 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.tmp

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
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 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
WORKDIR /home
CMD ["/home/start.sh"]

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# 软采基础镜像
包含dotnet 3.1 运行时i386 架构支持nats-server运行管理
### 编译
`docker build -t yuzhen_base:v1.0.2 .`
### docker 运行命令
`docker run -v /home/yuzhen/fanucDocker/drvCfg:/yuzhen_iot/service_manage/equipment_manage/Drv/cfg -v /home/yuzhen/fanucDocker/log:/yuzhen_iot/service_manage/ftp/log_storage gitiot.mgm-iot.com/iot/yuzhen_fanuc:v0.0.1`
-v 挂在配置文件路径和日志路径

Binary file not shown.

Binary file not shown.

BIN
nats-server Executable file

Binary file not shown.

View File

Binary file not shown.

View File

@ -0,0 +1,14 @@
[
{
"type": 0,
"equip_ID": "App",
"driver": "/yuzhen_iot/service_manage/traffic_manage/App/v1.0.0",
"state": 0
},
{
"type": 2,
"equip_ID": "Drv",
"driver": "/yuzhen_iot/service_manage/driver_manage/Drv/v1.0.0",
"state": 0
}
]

View File

@ -0,0 +1,7 @@
[
{
"id": "route1",
"source": "App",
"objective": "Drv"
}
]

6
start.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
echo "start nats-server"
/usr/bin/nats-server -p 6000 -a 127.0.0.1 &
echo "start scheduler"
/yuzhen_iot/service_manage/manage/app/scheduler
echo "yuzhen exit!"