File tree 5 files changed +24
-8
lines changed
5 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ go.work.sum
26
26
cmd /job /athena-job
27
27
logs /*
28
28
* .log
29
+ k8s-dev.md
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ image_name=athena-project-job
5
5
version=v1.0
6
6
cd $root_dir
7
7
8
- docker rm -f athena-job
9
- docker run --name=athena-job -v $root_dir /config/app.yaml:/app/app.yaml -itd \
8
+ container_name=athena-job
9
+ container=$( docker ps -a | grep $container_name | awk ' {print $1}' )
10
+ if [ ${# container} -gt 0 ]; then
11
+ docker rm -f $container_name
12
+ fi
13
+
14
+ docker run --name=$container_name -v $root_dir /config/app.yaml:/app/app.yaml -itd \
10
15
athena-project-job:v1.0
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ image_name=athena-project-rpc
5
5
version=v1.0
6
6
cd $root_dir
7
7
8
- docker rm -f athena-rpc
9
- docker run --name=athena-rpc -p 3337:3337 -p 8081:8081 -v $root_dir /config/app.yaml:/app/app.yaml -itd \
8
+ container_name=athena-rpc
9
+ container=$( docker ps -a | grep $container_name | awk ' {print $1}' )
10
+ if [ ${# container} -gt 0 ]; then
11
+ docker rm -f $container_name
12
+ fi
13
+
14
+ docker run --name=$container_name -p 3337:3337 -p 8081:8081 -v $root_dir /config/app.yaml:/app/app.yaml -itd \
10
15
athena-project-rpc:v1.0
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ image_name=athena-project-web
5
5
version=v1.0
6
6
cd $root_dir
7
7
8
- docker rm -f athena-web
9
- docker run --name=athena-web -p 1337:1337 -p 2337:2337 -v $root_dir /config/app.yaml:/app/app.yaml -itd \
8
+ container_name=athena-web
9
+ container=$( docker ps -a | grep $container_name | awk ' {print $1}' )
10
+ if [ ${# container} -gt 0 ]; then
11
+ docker rm -f $container_name
12
+ fi
13
+
14
+ docker run --name=$container_name -p 1337:1337 -p 2337:2337 -v $root_dir /config/app.yaml:/app/app.yaml -itd \
10
15
athena-project-web:v1.0
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ app_conf:
9
9
10
10
# redis配置
11
11
redis_conf :
12
- Address : 192.168.10.100 :6379 # host:port address.
12
+ Address : 192.168.10.121 :6379 # host:port address.
13
13
Password :
14
14
DB : 0
15
15
DialTimeout : 5s # Dial timeout for establishing new connections.
@@ -23,7 +23,7 @@ redis_conf:
23
23
24
24
# mysql配置
25
25
db_conf :
26
- Host : 192.168.10.100
26
+ Host : 192.168.10.121
27
27
Port : 3306
28
28
User : root
29
29
Password : " root123456"
You can’t perform that action at this time.
0 commit comments