mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 23:35:50 +00:00
Create maven-publish.yml
This commit is contained in:
parent
4da716ee8a
commit
0d10a02220
1 changed files with 24 additions and 0 deletions
24
.github/workflows/maven-publish.yml
vendored
Normal file
24
.github/workflows/maven-publish.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM tutum/tomcat
|
||||
|
||||
RUN rm -rf /tomcat/webapps/*
|
||||
|
||||
#install maven and git to build project
|
||||
RUN apt-get update && apt-get install -y wget git-core maven
|
||||
|
||||
RUN mkdir /opt/aspectj && cd /opt/aspectj &&\
|
||||
wget -O aspectjweaver-1.8.2.jar http://search.maven.org/remotecontent?filepath=org/aspectj/aspectjweaver/1.8.2/aspectjweaver-1.8.2.jar
|
||||
|
||||
ADD ./setenv.sh /tomcat/bin/setenv.sh
|
||||
|
||||
# Pull petclinic
|
||||
RUN git clone https://github.com/stagemonitor/spring-petclinic.git
|
||||
|
||||
# Build petclinic
|
||||
WORKDIR /spring-petclinic
|
||||
RUN rm src/main/resources/stagemonitor.properties
|
||||
|
||||
ADD ./stagemonitor.properties /spring-petclinic/src/main/resources/stagemonitor.properties
|
||||
|
||||
RUN mvn package &&\
|
||||
mv /spring-petclinic/target/petclinic.war /tomcat/webapps/petclinic.war &&\
|
||||
rm -rf /spring-petclinic
|
Loading…
Reference in a new issue