Commit c948f807 by shenggui.li

Initial commit

parent df40f96e
Pipeline #2001 passed with stages
in 6 minutes 12 seconds
...@@ -15,7 +15,7 @@ variables: ...@@ -15,7 +15,7 @@ variables:
cache: cache:
key: ${CI_COMMIT_SHA} key: ${CI_COMMIT_SHA}
paths: paths:
- target/ - web/target/
# 打包 # 打包
mvn_package: mvn_package:
...@@ -26,7 +26,7 @@ mvn_package: ...@@ -26,7 +26,7 @@ mvn_package:
# - wget -O /root/.m2/settings.xml http://configure_read:reyun.123@nexus.minrow.com/repository/configure/maven/config/settings.xml # - wget -O /root/.m2/settings.xml http://configure_read:reyun.123@nexus.minrow.com/repository/configure/maven/config/settings.xml
- mvn clean package -DskipTests=true - mvn clean package -DskipTests=true
# - mv docker_conf Dockerfile target/ # - mv docker_conf Dockerfile target/
- ls ; cd target ; ls -lh - ls ; cd web/target ; ls -lh
only: only:
- master - master
tags: tags:
......
FROM amazonlinux:2.0.20220218.1 FROM openjdk:8-jdk-alpine
#FROM amazonlinux:2.0.20220218.1
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone
ADD jdk-8u201-linux-x64.rpm /tmp/ #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 #RUN yum localinstall /tmp/jdk-8u201-linux-x64.rpm -y && yum clean all; rm -f /tmp/jdk-8u201-linux-x64.rpm
RUN mkdir -p /data/application/mobdna ; #yum install tar unzip procps iproute lsof glibc-all-langpacks -y ; yum clean all RUN mkdir -p /data/application/mobdna ; #yum install tar unzip procps iproute lsof glibc-all-langpacks -y ; yum clean all
# 安装datakit插件 # 安装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 #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 # tomcat
COPY mob-dna-1.0.jar /data/application/mobdna COPY web/target/mob-dna-1.0.jar /data/application/mobdna
#COPY dd-java-agent.jar /data/application/mobdna #COPY dd-java-agent.jar /data/application/mobdna
# COPY # COPY
WORKDIR /data/application/mobdna WORKDIR /data/application/mobdna
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment