Skip to content

Commit 3ae11e4

Browse files
authored
pin to specific docker image versions (#50)
* pass version tag from ENV file * pin Core to a specific release version
1 parent 52f8a77 commit 3ae11e4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# syntax=docker/dockerfile:1
22

33
### Dev Stage
4-
FROM openmrs/openmrs-core:dev-amazoncorretto-11 AS dev
4+
# FROM openmrs/openmrs-core:dev-amazoncorretto-11 AS dev
5+
FROM openmrs/openmrs-core:2.6.15-dev AS dev
56
WORKDIR /openmrs_distro
67

78
ARG MVN_ARGS_SETTINGS="-s /usr/share/maven/ref/settings-docker.xml -U -P distro"
@@ -26,7 +27,8 @@ RUN mvn $MVN_ARGS_SETTINGS clean
2627

2728
### Run Stage
2829
# Replace 'nightly' with the exact version of openmrs-core built for production (if available)
29-
FROM openmrs/openmrs-core:nightly-amazoncorretto-11
30+
# FROM openmrs/openmrs-core:nightly-amazoncorretto-11
31+
FROM openmrs/openmrs-core:2.6.15
3032

3133
# Do not copy the war if using the correct openmrs-core image version
3234
COPY --from=dev /openmrs/distribution/openmrs_core/openmrs.war /openmrs/distribution/openmrs_core/

docker-compose-sdh.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: sdh-openmrs-app-${ENVT}
44

55
services:
66
gateway:
7-
image: openmrs/openmrs-reference-application-3-gateway:${TAG:-qa}
7+
image: openmrs/openmrs-reference-application-3-gateway:${GATEWAY_TAG:-qa}
88
restart: "unless-stopped"
99
depends_on:
1010
- frontend
@@ -13,7 +13,7 @@ services:
1313
- "${ENVT_PORT}:80"
1414

1515
frontend:
16-
image: openmrs/openmrs-reference-application-3-frontend:${TAG:-qa}
16+
image: openmrs/openmrs-reference-application-3-frontend:${FRONTEND_TAG:-qa}
1717
restart: "unless-stopped"
1818
environment:
1919
SPA_PATH: /openmrs/spa
@@ -27,7 +27,7 @@ services:
2727
- backend
2828

2929
backend:
30-
image: openmrs/openmrs-reference-application-3-backend:${TAG:-qa}
30+
image: openmrs/openmrs-reference-application-3-backend:${BACKEND_TAG:-qa}
3131
restart: "unless-stopped"
3232
depends_on:
3333
- db

0 commit comments

Comments
 (0)