add build.sh
This commit is contained in:
parent
2d3f821204
commit
2875f37087
@ -2,7 +2,7 @@ FROM maven:3-jdk-8-alpine as MVN_BUILD
|
|||||||
|
|
||||||
WORKDIR /opt/bolo/
|
WORKDIR /opt/bolo/
|
||||||
ADD . /tmp
|
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/
|
&& cp -f /tmp/src/main/resources/docker/* /opt/bolo/WEB-INF/classes/
|
||||||
|
|
||||||
FROM openjdk:8-alpine
|
FROM openjdk:8-alpine
|
||||||
|
9
bolo/build_docker.sh
Executable file
9
bolo/build_docker.sh
Executable 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" .
|
Loading…
Reference in New Issue
Block a user