This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "context" | |
| "crypto/tls" | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "io" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # build: docker build -f manifest/docker/Dockerfile -t stm_user_ser:0.1.0 --build-arg PROJECT_NAME=stm_user_ser . | |
| # run: docker run -e SERVICE_ENV=dev -d --name stm_user_ser -p 9010:9010 stm_user_ser | |
| FROM alpine:3.18 | |
| ARG USERGROUP=docker-executor \ | |
| USERNAME=docker-executor \ | |
| PROJECT_NAME= | |
| ENV WORKDIR=/app \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| ### | |
| ### build_docker.sh - build docker image | |
| ### | |
| ### Usage: | |
| ### build.sh [projectName] [version] | |
| ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| ### | |
| ### 编译项目包后启动运行,编译前会先git pull拉取最新代码,运行前会结束原有进程 | |
| ### | |
| ### build_start.sh [project_name] [service_name] [action] | |
| ### project_name: 项目名称,必须,如:stm_user_ser | |
| ### service_name: 要启动的服务名称,默认http,如:http,all,queue,每个项的cmd自己定义的 |