O

opsmanager

dev.yohops.com

bc711acc fixbug · by LUOXC

开发运维信息查询系统工程

dev.yohops.com

Build & RUN


# build war
 ./build

# build docker image
docker build -t yoho-ops-dev-ops .

# run in local . mapping local dir /tmp/logs to container dir /opt/tomcat/logs
# need to expose port: 8080
docker run -d  -p 8080:8080 -v  /tmp/logs:/opt/tomcat/logs yoho-ops-dev-ops:latest  

# run in aws ecs
docker tag yoho-ops-dev-ops:latest 860721417875.dkr.ecr.cn-north-1.amazonaws.com.cn/yoho:yoho-ops-dev-ops
docker push 860721417875.dkr.ecr.cn-north-1.amazonaws.com.cn/yoho:yoho-ops-dev-ops