构建文件
parent
e486eed737
commit
7b2bd4c26b
|
@ -1,63 +1,20 @@
|
||||||
FROM adoptopenjdk/openjdk11:latest
|
FROM registry.cn-hangzhou.aliyuncs.com/lrh-public/openjdk:8u222-jre-up
|
||||||
|
|
||||||
LABEL Author="axzsd" \
|
LABEL Author="axzsd" \
|
||||||
Email="atva725@qq.com" \
|
Email="atva725@qq.com" \
|
||||||
Description="cmx活动"
|
Description="创盈支付服务端"
|
||||||
|
|
||||||
ENV SPRING_PROFILES_ACTIVE="dev"
|
ENV SPRING_PROFILES_ACTIVE="dev"
|
||||||
ENV JAVA_OPTIONS "-Xms256m -Xmx530m \
|
ENV JAVA_OPTIONS "-Xms800m -Xmx800m \
|
||||||
|
-XX:+HeapDumpOnOutOfMemoryError \
|
||||||
-Dfile.encoding=UTF-8 \
|
-Dfile.encoding=UTF-8 \
|
||||||
-Djava.awt.headless=true \
|
-Djava.awt.headless=true \
|
||||||
-Dsun.net.client.defaultConnectTimeout=10000 \
|
-Dsun.net.client.defaultConnectTimeout=10000 \
|
||||||
-Dsun.net.client.defaultReadTimeout=30000"
|
-Dsun.net.client.defaultReadTimeout=30000"
|
||||||
|
|
||||||
#RUN apt-get update && apt-get install bash --only-upgrade \
|
|
||||||
# && apt-get install libaprutil1 --only-upgrade \
|
|
||||||
# && apt-get install coreutils --only-upgrade \
|
|
||||||
# && apt-get install libgcc1 --only-upgrade \
|
|
||||||
# && apt-get install gcc-6-base --only-upgrade \
|
|
||||||
# && apt-get install libstdc++6 --only-upgrade \
|
|
||||||
# && apt-get install multiarch-support --only-upgrade \
|
|
||||||
# && apt-get install libc6 --only-upgrade \
|
|
||||||
# && apt-get install libc-bin --only-upgrade \
|
|
||||||
# && apt-get install libpng16-16 --only-upgrade \
|
|
||||||
# && apt-get install unzip --only-upgrade \
|
|
||||||
# && apt-get install mount --only-upgrade \
|
|
||||||
# && apt-get install libsmartcols1 --only-upgrade \
|
|
||||||
# && apt-get install libblkid1 --only-upgrade \
|
|
||||||
# && apt-get install libfdisk1 --only-upgrade \
|
|
||||||
# && apt-get install libmount1 --only-upgrade \
|
|
||||||
# && apt-get install bsdutils --only-upgrade \
|
|
||||||
# && apt-get install libuuid1 --only-upgrade \
|
|
||||||
# && apt-get install util-linux --only-upgrade \
|
|
||||||
# && apt-get install gnupg-agent --only-upgrade \
|
|
||||||
# && apt-get install gpgv --only-upgrade \
|
|
||||||
# && apt-get install dirmngr --only-upgrade \
|
|
||||||
# && apt-get install gnupg --only-upgrade \
|
|
||||||
# && apt-get install libtasn1-6 --only-upgrade \
|
|
||||||
# && apt-get install ncurses-bin --only-upgrade \
|
|
||||||
# && apt-get install libncursesw5 --only-upgrade \
|
|
||||||
# && apt-get install ncurses-base --only-upgrade \
|
|
||||||
# && apt-get install libtinfo5 --only-upgrade \
|
|
||||||
# && apt-get install bash --only-upgrade \
|
|
||||||
# && apt-get install wget --only-upgrade \
|
|
||||||
# && apt-get install libsepol1 --only-upgrade \
|
|
||||||
# && apt-get install perl-base --only-upgrade \
|
|
||||||
# && apt-get install libpcre3 --only-upgrade \
|
|
||||||
# && apt-get install git --only-upgrade \
|
|
||||||
# && apt-get install git-man --only-upgrade \
|
|
||||||
# && apt-get install libncurses5 --only-upgrade \
|
|
||||||
# && apt-get install openssh-client --only-upgrade \
|
|
||||||
# && apt-get install libperl5.24 --only-upgrade \
|
|
||||||
# && apt-get install perl --only-upgrade \
|
|
||||||
# && apt-get install perl-modules-5.24 --only-upgrade \
|
|
||||||
# && apt-get install python --only-upgrade \
|
|
||||||
# && apt-get install python-minimal --only-upgrade \
|
|
||||||
# && apt-get install libpython-stdlib --only-upgrade \
|
|
||||||
# && apt clean
|
|
||||||
|
|
||||||
WORKDIR /opt
|
WORKDIR /work/projects/yudao-server
|
||||||
COPY hound-server/target/hound-server.jar /opt/app.jar
|
COPY yudao-server/target/yudao-server.jar /opt/app.jar
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 48080
|
||||||
ENTRYPOINT exec java $JAVA_OPTIONS -jar -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} /opt/app.jar
|
ENTRYPOINT exec java $JAVA_OPTIONS -jar -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} /opt/app.jar
|
||||||
|
|
|
@ -15,7 +15,7 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Pull Code') {
|
stage('Pull Code') {
|
||||||
steps {
|
steps {
|
||||||
checkout([$class: 'GitSCM', branches: [[name: "$GIT_BRANCH"]], extensions: [], userRemoteConfigs: [[credentialsId: 'Hx-Deploy-Git', url: 'http://117.33.142.185:3000/epiboly/hound-server-parent.git']]])
|
checkout([$class: 'GitSCM', branches: [[name: "$GIT_BRANCH"]], extensions: [cloneOption(depth: 1, noTags: true, reference: '', shallow: true)], userRemoteConfigs: [[credentialsId: 'Hx-Deploy-Git', url: 'http://117.33.142.185:3000/zenghuapei/cyywl_server.git']]])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,21 +8,21 @@ services:
|
||||||
environment:
|
environment:
|
||||||
TZ: Asia/Shanghai
|
TZ: Asia/Shanghai
|
||||||
SPRING_PROFILES_ACTIVE: test
|
SPRING_PROFILES_ACTIVE: test
|
||||||
volumes:
|
# volumes:
|
||||||
- /opt/logs/cmx:/opt/logs
|
# - /opt/logs/cyywl:/work/projects/yudao-server
|
||||||
ulimits:
|
ulimits:
|
||||||
nproc: 65535
|
nproc: 65535
|
||||||
nofile:
|
nofile:
|
||||||
soft: 20000
|
soft: 20000
|
||||||
hard: 40000
|
hard: 40000
|
||||||
ports:
|
ports:
|
||||||
- "3001:3001"
|
- "48080:48080"
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 600MB
|
memory: 800MB
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3001/hound-api/actuator/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:48080/cyyywl-api/actuator/health"]
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
interval: 45s
|
interval: 45s
|
||||||
retries: 3
|
retries: 3
|
|
@ -1,5 +1,7 @@
|
||||||
server:
|
server:
|
||||||
port: 48080
|
port: 48080
|
||||||
|
servlet:
|
||||||
|
context-path: /cyyywl-api
|
||||||
|
|
||||||
--- #################### 数据库相关配置 ####################
|
--- #################### 数据库相关配置 ####################
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue