diff --git a/Dockerfile b/Dockerfile index 6c1cc53..a6f5e86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ # renovate: datasource=github-releases depName=microsoft/ApplicationInsights-Java ARG APP_INSIGHTS_AGENT_VERSION=3.7.1 -FROM hmctspublic.azurecr.io/base/java:21-distroless -COPY build/libs/api-cp-springboot-template.jar /opt/app/ +FROM crmdvrepo01.azurecr.io/registry.hub.docker.com/library/openjdk:21-jdk-slim + + +COPY ./build/libs/api-cp-springboot-template.jar /opt/app/ COPY lib/applicationinsights.json /opt/app/ EXPOSE 4550 -CMD [ "api-cp-springboot-template.jar" ] +RUN chmod 755 /opt/app/api-cp-springboot-template.jar +CMD [ "java", "-jar", "/opt/app/api-cp-springboot-template.jar" ] diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml new file mode 100644 index 0000000..bd94268 --- /dev/null +++ b/azure-pipelines.yaml @@ -0,0 +1,33 @@ +name: CPP Context Verify & Validation + +# Need to update this for actual migration +trigger: + branches: + include: + - master + - 'team/*' + paths: + include: + - '*' + +pr: + - '*' + +resources: + repositories: + - repository: cppAzureDevOpsTemplates + type: github + name: hmcts/cpp-azure-devops-templates + endpoint: 'hmcts' + ref: 'main' + +pool: + name: "MDV-ADO-AGENT-AKS-01" + demands: + - identifier -equals ubuntu-j21 + +stages: + - template: pipelines/vp-build.yaml@cppAzureDevOpsTemplates + parameters: + repo: "$(Build.Repository.Name)" +