Commit 7b074ef0 authored by jiangyz's avatar jiangyz

cicd

parent 9ba3fadb
Pipeline #25125 failed with stages
in 2 minutes and 52 seconds
FROM openjdk:jdk-17-debian FROM maven:3.8.5-openjdk-17
ENV BASE_DIR="/home/pms-agent" \ ENV BASE_DIR="/home/pms-agent" \
DATA_DIR="/data/pms-agent" DATA_DIR="/data/pms-agent"
...@@ -10,7 +10,7 @@ COPY pms-agent.jar pms-agent.jar ...@@ -10,7 +10,7 @@ COPY pms-agent.jar pms-agent.jar
# PASS平台不能用Root用户使用文件夹,需要创建普通用户 # PASS平台不能用Root用户使用文件夹,需要创建普通用户
# 日志路径需要和配置相同 # 日志路径需要和配置相同
RUN mkdir -p $DATA_DIR/{log, upload, tmp} RUN mkdir -p $DATA_DIR/{log, upload, tmp}
RUN adduser -u 1000 --disabled-password gx \ RUN adduser -r -u 1000 gx \
&& chown -R gx:gx $BASE_DIR \ && chown -R gx:gx $BASE_DIR \
&& chmod -R 777 $BASE_DIR \ && chmod -R 777 $BASE_DIR \
&& chown -R gx:gx $DATA_DIR \ && chown -R gx:gx $DATA_DIR \
......
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