feat: update java web demo
This commit is contained in:
parent
01fa619887
commit
54e7f0dba1
|
@ -0,0 +1,6 @@
|
|||
FROM adoptopenjdk/openjdk8
|
||||
RUN mkdir /app
|
||||
WORKDIR /tmp/build
|
||||
COPY ./target/web-svc-demo-0.0.1-SNAPSHOT.jar ./
|
||||
|
||||
ENTRYPOINT java -jar web-svc-demo-0.0.1-SNAPSHOT.jar
|
5
build.sh
5
build.sh
|
@ -2,11 +2,12 @@
|
|||
|
||||
set -ex
|
||||
|
||||
PROJECT_PTAH=$(pwd)
|
||||
BUILD_VERSION="0.0.1-SNAPSHOT"
|
||||
MODULE_PATH="./web-svc-demo"
|
||||
|
||||
cd $MODULE_PATH || exit
|
||||
|
||||
./gradlew build
|
||||
mkdir output
|
||||
cp "./build/libs/web-svc-demo-$BUILD_VERSION.jar" ./output/app.jar
|
||||
mkdir "$PROJECT_PTAH/target"
|
||||
cp "./build/libs/web-svc-demo-$BUILD_VERSION.jar" "$PROJECT_PTAH/target/app.jar"
|
12
clean.sh
12
clean.sh
|
@ -1,9 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
MODULE_PATH="./web-svc-demo"
|
||||
|
||||
cd $MODULE_PATH || exit
|
||||
|
||||
./gradlew clean
|
||||
if [ -d "./target" ]; then
|
||||
rm -rf ./target
|
||||
fi
|
Loading…
Reference in New Issue