Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
33 changes: 33 additions & 0 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
@@ -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)"