Skip to content

Commit 1af8cde

Browse files
authored
Build pipeline (#18)
1 parent b46a9c5 commit 1af8cde

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# renovate: datasource=github-releases depName=microsoft/ApplicationInsights-Java
22
ARG APP_INSIGHTS_AGENT_VERSION=3.7.1
3-
FROM hmctspublic.azurecr.io/base/java:21-distroless
43

5-
COPY build/libs/api-cp-springboot-template.jar /opt/app/
4+
FROM crmdvrepo01.azurecr.io/registry.hub.docker.com/library/openjdk:21-jdk-slim
5+
6+
7+
COPY ./build/libs/api-cp-springboot-template.jar /opt/app/
68
COPY lib/applicationinsights.json /opt/app/
79

810
EXPOSE 4550
9-
CMD [ "api-cp-springboot-template.jar" ]
11+
RUN chmod 755 /opt/app/api-cp-springboot-template.jar
12+
CMD [ "java", "-jar", "/opt/app/api-cp-springboot-template.jar" ]

azure-pipelines.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CPP Context Verify & Validation
2+
3+
# Need to update this for actual migration
4+
trigger:
5+
branches:
6+
include:
7+
- master
8+
- 'team/*'
9+
paths:
10+
include:
11+
- '*'
12+
13+
pr:
14+
- '*'
15+
16+
resources:
17+
repositories:
18+
- repository: cppAzureDevOpsTemplates
19+
type: github
20+
name: hmcts/cpp-azure-devops-templates
21+
endpoint: 'hmcts'
22+
ref: 'main'
23+
24+
pool:
25+
name: "MDV-ADO-AGENT-AKS-01"
26+
demands:
27+
- identifier -equals ubuntu-j21
28+
29+
stages:
30+
- template: pipelines/vp-build.yaml@cppAzureDevOpsTemplates
31+
parameters:
32+
repo: "$(Build.Repository.Name)"
33+

0 commit comments

Comments
 (0)