|
|
@ -27,7 +27,8 @@ if exist %df% (
|
|
|
|
del /f /s /q .\Dockerfile
|
|
|
|
del /f /s /q .\Dockerfile
|
|
|
|
)
|
|
|
|
)
|
|
|
|
echo --------------------------------´´½¨Dockerfile--------------------------------
|
|
|
|
echo --------------------------------´´½¨Dockerfile--------------------------------
|
|
|
|
echo FROM 192.168.202.36:30002/library/openjdk:8u131-jdk-alpine >> Dockerfile
|
|
|
|
echo FROM 192.168.202.36:30002/library/openjdk:8-sw66>> Dockerfile
|
|
|
|
|
|
|
|
::echo RUN apk add libuuid libuuid-devel >> Dockerfile
|
|
|
|
echo ADD libsapjco3.so /usr/lib/libsapjco3.so >> Dockerfile
|
|
|
|
echo ADD libsapjco3.so /usr/lib/libsapjco3.so >> Dockerfile
|
|
|
|
echo ADD sapjco3.jar /usr/lib/sapjco3.jar >> Dockerfile
|
|
|
|
echo ADD sapjco3.jar /usr/lib/sapjco3.jar >> Dockerfile
|
|
|
|
echo RUN chmod a+x -R /usr/lib/libsapjco3.so >> Dockerfile
|
|
|
|
echo RUN chmod a+x -R /usr/lib/libsapjco3.so >> Dockerfile
|
|
|
@ -37,7 +38,7 @@ echo RUN echo "Asia/Shanghai" ^> /etc/timezone >> Dockerfile
|
|
|
|
echo CMD ["java", "-jar", "-Dspring.profiles.active=%profile%", "application.jar"] >> Dockerfile
|
|
|
|
echo CMD ["java", "-jar", "-Dspring.profiles.active=%profile%", "application.jar"] >> Dockerfile
|
|
|
|
dir
|
|
|
|
dir
|
|
|
|
echo --------------------------------docker login...-------------------------------
|
|
|
|
echo --------------------------------docker login...-------------------------------
|
|
|
|
docker login 192.168.202.36:30002 -u deploy -p Deploy@2023
|
|
|
|
docker login 192.168.202.36:30002 -u admin -p Harbor@2023
|
|
|
|
echo --------------------------------docker build...-------------------------------
|
|
|
|
echo --------------------------------docker build...-------------------------------
|
|
|
|
docker build -t %imageURI%:%imageVersion% .
|
|
|
|
docker build -t %imageURI%:%imageVersion% .
|
|
|
|
echo --------------------------------docker push...--------------------------------
|
|
|
|
echo --------------------------------docker push...--------------------------------
|
|
|
|