Skip to content

Commit

Permalink
Adding package generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasadreddy committed May 10, 2020
1 parent fe68d90 commit 651a9e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions prepare-package.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/bash

mvn clean install -DskipTests
mvn clean package -DskipTests
mkdir -p /tmp/app/
cd ./target
files=( *.jar )
#echo "${files[0]}"
cd ..
cp target/*.jar /tmp/app/
cp deployment/etc/* /tmp/app/
echo "#!/bin/sh\n\njava -jar ${files[0]}" > /tmp/app/run.sh

chmod a+x /tmp/app/run.sh
zip -r -j spring-boot-deployment.zip /tmp/app/*.*

0 comments on commit 651a9e8

Please sign in to comment.