Commit 037e619e authored by MANISH KUMAR's avatar MANISH KUMAR
Browse files

Using Custome JDK image to build pipelines

parent ae394c2b
Pipeline #25090 passed with stage
in 16 seconds
...@@ -139,11 +139,10 @@ azure_containerize: ...@@ -139,11 +139,10 @@ azure_containerize:
script: script:
# Dockerfile # Dockerfile
- | - |
echo 'FROM openjdk:8-jdk-alpine echo 'FROM msosdu.azurecr.io/azure-osdu-openjdk:0.0.1
VOLUME /tmp WORKDIR /deployments
ARG JAR_FILE ARG JAR_FILE
COPY ${JAR_FILE} app.jar COPY ${JAR_FILE} app.jar' > Dockerfile
ENTRYPOINT ["java","-jar","/app.jar"]' > Dockerfile
- | - |
if [ "$AZURE_SERVICE" == "entitlements" ]; then if [ "$AZURE_SERVICE" == "entitlements" ]; then
TARGET=$(find ./$AZURE_BUILD_SUBDIR/target -name '*.jar' |head -n 1) TARGET=$(find ./$AZURE_BUILD_SUBDIR/target -name '*.jar' |head -n 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment