add build.sh

This commit is contained in:
LingZhaoHui 2022-04-05 23:14:48 +08:00
parent 2d3f821204
commit 2875f37087
2 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@ FROM maven:3-jdk-8-alpine as MVN_BUILD
WORKDIR /opt/bolo/
ADD . /tmp
RUN cd /tmp && mvn package -DskipTests -Pci --settings settings.xml && mv target/bolo/* /opt/bolo/ \
RUN cd /tmp && mvn package -DskipTests --settings settings.xml && mv target/bolo/* /opt/bolo/ \
&& cp -f /tmp/src/main/resources/docker/* /opt/bolo/WEB-INF/classes/
FROM openjdk:8-alpine

9
bolo/build_docker.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
mkdir -p /tmp/bolo-solo
cp -rf ./Dockerfile ./gulpfile.js ./manifest.json ./package.json ./pom.xml src /tmp/bolo-solo
cp -rf ./settings.xml /tmp/bolo-solo
cd /tmp/bolo-solo && sudo docker build -t "zeek/bolo" .