LingxinMeng 1 год назад
Родитель
Сommit
b7ed3209a6
6 измененных файлов с 14 добавлено и 15 удалено
  1. 0 9
      Dockerfile
  2. 0 0
      aarch64/topic_echo/main/main.go
  3. 6 2
      amd64/web_server/README.md
  4. 0 4
      build-topic-echo.sh
  5. 4 0
      build-topic_echo.sh
  6. 4 0
      build-web_server.sh

+ 0 - 9
Dockerfile

@@ -1,9 +0,0 @@
-FROM golang:1.22
-RUN go env -w GOPROXY=https://goproxy.cn
-RUN mkdir /cicv-data-closedloop
-WORKDIR /cicv-data-closedloop
-ADD . /cicv-data-closedloop
-RUN go build -o /cicv-data-closedloop/web_server.exe /cicv-data-closedloop/amd64/web_server/main.go
-RUN chmod 777 /cicv-data-closedloop/web_server.exe
-CMD /cicv-data-closedloop/web_server.exe
-EXPOSE 12341

+ 0 - 0
aarch64/topic-echo/main/main.go → aarch64/topic_echo/main/main.go


+ 6 - 2
amd64/web_server/README.md

@@ -1,4 +1,8 @@
-# 部署
+# 普通部署
+go build -o 
+
+
+# todo docker部署
 1. 创建Dockerfile
 2. 创建镜像 docker build . -t web_server:v20240311
-3. 启动容器 docker run -itd 
+3. 启动容器 docker run -itd

+ 0 - 4
build-topic-echo.sh

@@ -1,4 +0,0 @@
-#!/bin/bash
-
-# 话题echo程序
-go build -o ./exe/topic-echo.exe ./aarch64/topic-echo/main/main.go

+ 4 - 0
build-topic_echo.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# 话题echo程序
+go build -o ./exe/topic_echo.exe ./aarch64/topic_echo/main/main.go

+ 4 - 0
build-web_server.sh

@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# 监控接口
+go build -o ./exe/web_server.exe ./amd64/web_server/main.go