vue web pipeline build 过程:
kubectl set image deployment web-deploy web=harbor-inside..com:9443/his/xx-ui:202406271445 -n pre

sudo docker rmi harbor-inside..com:9443/his/xx-ui:202406271445


sudo docker push harbor-inside..com:9443/his/xx-ui:202406271445

sudo docker login -u admin -p **** harbor-inside..com:9443

sudo docker build --build-arg PROJECT_NAME=xx-ui --build-arg PROJECT_PORT=80 --no-cache -t harbor-inside..com:9443/his/xx-ui:202406271445 .

 sudo npm run build


FROM harbor-inside..com:9443/his_new/nginx
#FROM harbor..com/public/nginx
LABEL maintainer=lfq
ARG PROJECT_PORT
ARG PROJECT_NAME
RUN rm -r /etc/nginx/conf.d/default.conf
#RUN sed -i 's/third/third|internet/' ./conf/app.conf
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
COPY ./conf/app.conf /etc/nginx/conf.d/app.conf
#CMD sed -i 's/third/third|internet/' /etc/nginx/conf.d/app.conf
#COPY --from=builder /usr/local/app/dist/ /usr/share/nginx/html/
COPY dist/ /usr/share/nginx/html/
EXPOSE ${PROJECT_PORT}


maven build :
#FROM harbor.hf   .com/public/build as builder

FROM harbor-inside.hf   .com:9443/his_new/build as builder

MAINTAINER lfq 281390052@qq.com
RUN mkdir /usr/local/app
#RUN cat /usr/local/maven/conf/settings.xml
COPY . /usr/local/app
WORKDIR /usr/local/app
#RUN cat /usr/local/maven/conf/settings.xml
RUN /usr/local/maven/bin/mvn clean package
#RUN /usr/local/maven/bin/mvn install


#FROM pig4cloud/java:8-jre
#FROM harbor.hf   .com/public/jdk:1.8

FROM harbor-inside.hf   .com:9443/his_new/jdk:1.8

ARG PROJECT_PATH
ARG PROJECT_NAME
ARG PROJECT_PORT
ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Xms2g -Xmx4g -Xmn3g -XX:MetaspaceSize=2g -XX:MaxMetaspaceSize=4g -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/${PROJECT_NAME}/${PROJECT_NAME}-OutOfMemoryError-%t.hprof -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M -Xloggc:/${PROJECT_NAME}/${PROJECT_NAME}-gc-%t.log -Djava.security.egd=file:/dev/./urandom"
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /${PROJECT_NAME}
WORKDIR /${PROJECT_NAME}
EXPOSE ${PROJECT_PORT}
COPY --from=builder /usr/local/app/${PROJECT_NAME}/target/*.jar ./app.jar
COPY his-manage-m/stock_in_template.xls /web/server/stockExcel/stock_in_template.xls
RUN mkdir /web/server/img/
CMD sleep 1;java $JAVA_OPTS -jar app.jar

 

sudo docker build --build-arg PROJECT_NAME=his-manage-m/xx-manage-biz --build-arg PROJECT_PORT=4001 --no-cache -t harbor-inside..com:9443/xxyl/his-manage-m/xx-manage-biz:202406261629 .

RUN /usr/local/maven/bin/mvn clean package

通过配置 nexus mvn 通过settings 衔接 mvn 私仓

docker harbor 容器私仓