#!/usr/bin/env bash

# Start commands for each container, one cmd a line
START_CMDS="
sysctl -w net.core.somaxconn=65535 && cd /home/services && ${start_cmd}
"

QA_PRE_START_CMD='
'

# Container names for each container, one name a line, same order with $start_cmds
CONTAINER_NAMES="
bp-pay-daemon-${env}-${task_name}
"

# Port maps for each container, one map a line, same order with $start_cmds
DOCKER_PORT_MAPS="
"

# This is for changing container name, remove old containers when deploy new one
OLD_CONTAINER_NAMES="
bp-pay-daemon-${env}-${task_name}
"

# Volumn maps for each container, one map a line, same order with $start_cmds
DOCKER_VOLUMN_MAPS="
/home/worker/_logs/bp-pay-daemon-${env}-${task_name}:/home/services/api.go2yd.com/logs
"

# Other docker run options
DOCKER_RUN_OPTIONS="--cap-add SYS_PTRACE --restart=always --privileged"
# Image name
IMAGE_NAME="docker2.yidian.com:5000/publish/${COMMIT_JOB}-${COMMIT_NUMBER}-image"
# This is for stopping container, kill specify process inside the container before 'docker stop' and 'docker rm'
DOCKER_PRESTOP_CMD=''
# Service port for apitest
SERVICE_PORT=""
# Service port inside container
ORIGIN_SERVICE_PORT=""
# This service don't listen on any port
DONT_CHECK_PORT="true"
