Skip to content

增加预处理过程,方便后期调试,例如独立运行本镜像查看环境等 #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

paddy235
Copy link

@paddy235 paddy235 commented Jun 9, 2023

增加预处理过程,方便后期调试,例如独立运行本镜像查看环境等

paddy235 added 2 commits June 9, 2023 16:17
增加一个预处理脚本过程,适合后期调试,例如:查看环境变量
// 增加预处理过程,方便后期调试,例如独立运行本镜像查看环境等
@paddy235
Copy link
Author

例如:

 docker run -it --rm -e "TP_PG_IP=database" reg1.sgeg.shenhua.cc/library/thingspanel/thingspanel-go:v0.5.0 env
HOSTNAME=2742963371f1
SHLVL=1
HOME=/root
TP_PG_IP=database
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/go/src/app

看看变量是否生效:

TP_PG_IP=database

paddy235 added 2 commits June 15, 2023 11:36
修复一个判断条件错误
增加bash和curl工具
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant