Dockerfile 1.19 KB
Newer Older
shenggui.li committed
1
FROM 502302443508.dkr.ecr.cn-north-1.amazonaws.com.cn/mobdna:latest
shenggui.li committed
2
#FROM amazonlinux:2.0.20220218.1
shenggui.li committed
3

shenggui.li committed
4
#RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone
shenggui.li committed
5 6
#ADD jdk-8u201-linux-x64.rpm /tmp/
#RUN yum localinstall  /tmp/jdk-8u201-linux-x64.rpm -y &&  yum clean all; rm -f /tmp/jdk-8u201-linux-x64.rpm
shenggui.li committed
7
#RUN mkdir -p /data/application/mobdna ;  #yum install tar unzip  procps iproute lsof glibc-all-langpacks -y ; yum clean all
shenggui.li committed
8 9 10 11
# 安装datakit插件
#RUN DK_CLOUD_PROVIDER="aws" DK_INSTALL_ONLY="true" DK_DATAWAY="https://aws-openway.guance.com?token=tkn_6e86d42e17a446c2b95a9c8e4530cf1e" bash -c "$(curl -L https://static.guance.com/datakit/install.sh)"; echo ok

# tomcat
shenggui.li committed
12
RUN rm -rf /data/application/mobdna/mob-dna-1.0.jar
shenggui.li committed
13
COPY target/mob-dna-1.0.jar /data/application/mobdna
shenggui.li committed
14 15 16 17 18 19
#COPY dd-java-agent.jar /data/application/mobdna
# COPY
WORKDIR /data/application/mobdna
ENV LANG zh_CN.UTF8
ENV LC_ALL zh_CN.UTF8
#CMD java -jar -javaagent:/data/application/mobdna/dd-java-agent.jar -Ddd.env=mob-dna -Ddd.service.name=mobdna-web -Ddd.agent.port=9529 -Dspring.profiles.active=pro mob-dna-1.0.jar
shenggui.li committed
20
CMD java -jar -Dspring.profiles.active=test /data/application/mobdna/mob-dna-1.0.jar