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
|
set -ex
|
||||||
|
|
||||||
|
PROJECT_PTAH=$(pwd)
|
||||||
BUILD_VERSION="0.0.1-SNAPSHOT"
|
BUILD_VERSION="0.0.1-SNAPSHOT"
|
||||||
MODULE_PATH="./web-svc-demo"
|
MODULE_PATH="./web-svc-demo"
|
||||||
|
|
||||||
cd $MODULE_PATH || exit
|
cd $MODULE_PATH || exit
|
||||||
|
|
||||||
./gradlew build
|
./gradlew build
|
||||||
mkdir output
|
mkdir "$PROJECT_PTAH/target"
|
||||||
cp "./build/libs/web-svc-demo-$BUILD_VERSION.jar" ./output/app.jar
|
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
|
if [ -d "./target" ]; then
|
||||||
|
rm -rf ./target
|
||||||
MODULE_PATH="./web-svc-demo"
|
fi
|
||||||
|
|
||||||
cd $MODULE_PATH || exit
|
|
||||||
|
|
||||||
./gradlew clean
|
|
Loading…
Reference in New Issue