commit e7e60bcdba0ef80d5fdfa123b40cfefaf6b28b89 Author: liu.chunxun Date: Fri Apr 19 10:39:18 2024 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d36977d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.tmp diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..129c7a3 --- /dev/null +++ b/Dockerfile @@ -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"] + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..14ca15f --- /dev/null +++ b/README.md @@ -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 挂在配置文件路径和日志路径 \ No newline at end of file diff --git a/dotnet-runtime-3.1.32-linux-x64.tar.gz b/dotnet-runtime-3.1.32-linux-x64.tar.gz new file mode 100644 index 0000000..4faffab Binary files /dev/null and b/dotnet-runtime-3.1.32-linux-x64.tar.gz differ diff --git a/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb b/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb new file mode 100644 index 0000000..6509c02 Binary files /dev/null and b/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb differ diff --git a/nats-server b/nats-server new file mode 100755 index 0000000..ffd0174 Binary files /dev/null and b/nats-server differ diff --git a/service_manage/ftp/log_storage/log b/service_manage/ftp/log_storage/log new file mode 100644 index 0000000..e69de29 diff --git a/service_manage/manage/app/scheduler b/service_manage/manage/app/scheduler new file mode 100755 index 0000000..afd72c2 Binary files /dev/null and b/service_manage/manage/app/scheduler differ diff --git a/service_manage/manage/cfg/List_Sub.json b/service_manage/manage/cfg/List_Sub.json new file mode 100644 index 0000000..e2bc3ac --- /dev/null +++ b/service_manage/manage/cfg/List_Sub.json @@ -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 + } +] \ No newline at end of file diff --git a/service_manage/manage/cfg/Route.json b/service_manage/manage/cfg/Route.json new file mode 100644 index 0000000..da5badc --- /dev/null +++ b/service_manage/manage/cfg/Route.json @@ -0,0 +1,7 @@ +[ + { + "id": "route1", + "source": "App", + "objective": "Drv" + } +] \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..02e9cf2 --- /dev/null +++ b/start.sh @@ -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!" \ No newline at end of file