This commit is contained in:
Rzy 2024-07-16 18:26:51 +08:00
parent 8ae7a0fa53
commit 9153e1de6e
7 changed files with 29 additions and 6 deletions

9
sh/build.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
source ./config.sh
docker build -t "${IMAGE}:${VERSION}" . --no-cache
docker tag "${IMAGE}:${TAGS_NAME}" ${ADDRESS}:${TAGS_NAME}
docker push ${ADDRESS}:${TAGS_NAME}

View File

@ -5,7 +5,7 @@ RPC_CONTAINER="transfer_middleware"
RPC_PORT="10001" RPC_PORT="10001"
V_REFLECT="" V_REFLECT=""
TAGS_NAME="v1" TAGS_NAME="v1"
ADDRESS="registry.cn-chengdu.aliyuncs.com/go_ls/transfer_middleware_produce" ADDRESS="registry.cn-chengdu.aliyuncs.com/go_ls/transfer_middleware"
docker build -t "${IMAGE}:${TAGS_NAME}" . --no-cache docker build -t "${IMAGE}:${TAGS_NAME}" . --no-cache

14
sh/build_test.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
IMAGE="transfer_middleware"
RPC_CONTAINER="transfer_middleware"
RPC_PORT="10001"
V_REFLECT=""
TAGS_NAME="v1"
ADDRESS="registry.cn-chengdu.aliyuncs.com/go_ls/transfer_middleware"
docker build -t "${IMAGE}:${TAGS_NAME}" . --no-cache
docker tag "${IMAGE}:${TAGS_NAME}" ${ADDRESS}:${TAGS_NAME}
docker push ${ADDRESS}:${TAGS_NAME}

0
sh/config.sh Normal file
View File

View File

@ -7,4 +7,8 @@ V_REFLECT=""
docker build -t "${IMAGE}" . --no-cache docker build -t "${IMAGE}" . --no-cache
docker stop "${RPC_CONTAINER}"
docker rm "${RPC_CONTAINER}"
#docker run -it -p "${RPC_PORT}:${RPC_PORT}" --name "$RPC_CONTAINER" "${IMAGE}"

View File

@ -1,5 +0,0 @@
FROM alpine:latest AS runtime
RUN apk update && apk add supervisor
RUN apk add make
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
ENV TZ Asia/Shanghai

1
until/env.go Normal file
View File

@ -0,0 +1 @@
package until