You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
976 B
18 lines
976 B
1 month ago
|
#!/bin/bash
|
||
|
|
||
|
CONTAINER_CODE=4
|
||
|
BRANCH_NAME=TEST
|
||
|
NUM=`expr ${CONTAINER_CODE} - 1`
|
||
|
TEMP_CODE=`expr ${NUM} \* 10`
|
||
|
GM_PORT=`expr 6318 + ${TEMP_CODE}` #GM 端口
|
||
|
VERSION_PORT=`expr 9601 + ${TEMP_CODE} ` #版本服
|
||
|
GAME_PORT=`expr 9710 + ${TEMP_CODE}` #游戏服
|
||
|
REALM_GATE_PORT_1=`expr 9711 + ${TEMP_CODE}` #realm_gate_1网关
|
||
|
REALM_GATE_PORT_2=`expr 9712 + ${TEMP_CODE}` #realm_gate_2网关
|
||
|
CHAT_GATE_PORT=`expr 9810 + ${TEMP_CODE}` #聊天网关
|
||
|
|
||
|
MACHINE_HOST_DOMAIN="43.138.62.206" #宿主机外网地址
|
||
|
curl -X POST http://127.0.0.1:8088/server/submit -H 'Content-Type: application/json' -d '{"order":"'${CONTAINER_CODE}'","branch":"'${BRANCH_NAME}'","name":"docker_'${CONTAINER_CODE}'","code":"'${CONTAINER_CODE}'","ip":"'${MACHINE_HOST_DOMAIN}'","game_port":"'${GAME_PORT}'","version_port":"'${VERSION_PORT}'","g_gate_port":"'${REALM_GATE_PORT_1}'","c_gate_port":"'${CHAT_GATE_PORT}'","gm_port":"'${GM_PORT}'"}'
|
||
|
|
||
|
#curl -X POST http://127.0.0.1:8088/server/delete?id=2
|