Skip to content

Commit 2b35ec7

Browse files
author
jenkins
committed
Merge branch 'release/2022.3' into main
2 parents bd40c91 + 219f276 commit 2b35ec7

File tree

6 files changed

+52
-4
lines changed

6 files changed

+52
-4
lines changed

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# 1. a tagged release e.g. 4.10.0
99
# 2. a branch e.g. main or develop
1010
# 3. a git commit hash
11-
MDM_APPLICATION_COMMIT=5.1.0
12-
MDM_UI_COMMIT=7.1.0
11+
MDM_APPLICATION_COMMIT=5.2.0
12+
MDM_UI_COMMIT=7.2.0
1313

1414
# Change this to alter the port MDM is published to
1515
MDM_PORT=8082
1616

1717
# Change this to change the tag assigned to the built docker mdm image
18-
MDM_TAG=2022.2
18+
MDM_TAG=2022.3

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
ADDITIONAL_PLUGINS: ""
2020
MDM_UI_THEME_NAME: "default"
2121
CACHE_BURST: "${CACHE_BURST}"
22+
MDM_EXPLORER_API_ENDPOINT: "http://localhost:${MDM_PORT}/api"
2223
environment:
2324
PGPASSWORD: postgresisawesome
2425
runtime.config.path: /usr/local/tomcat/conf/runtime.yml

mauro-data-mapper/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ ARG MDM_UI_COMMIT=main
1010
ARG ADDITIONAL_PLUGINS=""
1111
ARG MDM_UI_THEME_NAME="default"
1212
ARG MDM_UI_FEATURE_SUBSCRIBED_CATALOGUES="true"
13+
14+
ARG DEPLOY_MDM_EXPLORER=0
15+
ARG MDM_EXPLORER_VERSION="1.0.0-SNAPSHOT"
16+
ARG MDM_EXPLORER_BUILD_HOME=/opt/mdm-explorer/dist
17+
ARG MDM_EXPLORER_API_ENDPOINT="http://localhost:${MDM_PORT}/api"
18+
1319
# This is needed to ensure the fetch and checkout are always run
1420
# If the arg is passed in using a random value then it will invalidate the docker cache and force the following steps to re-run
1521
ARG CACHE_BURST=1
@@ -21,6 +27,13 @@ ARG CACHE_BURST=1
2127
# Checkout the desired versions
2228
RUN cd "$MDM_APPLICATION_HOME" && git fetch && git checkout "$MDM_APPLICATION_COMMIT" && if [[ `git status` != HEAD\ detached* ]]; then git pull; fi
2329
RUN cd "$MDM_UI_HOME" && git fetch && git checkout "$MDM_UI_COMMIT" && if [[ `git status` != HEAD\ detached* ]]; then git pull; fi
30+
RUN mkdir -p $MDM_EXPLORER_BUILD_HOME
31+
32+
# Copy in the building scripts
33+
COPY build_scripts /usr/local/bin/
34+
35+
# Make sure all scripts are executable
36+
RUN chmod a+x /usr/local/bin/*
2437

2538
# Copy in build.yml
2639
COPY config/build.yml $MDM_APPLICATION_HOME/grails-app/conf/build.yml
@@ -31,6 +44,7 @@ COPY mdm-ui $MDM_UI_HOME/
3144
# Build the front and back ends
3245
# The front end build will try to use precompiled sources or it will build locally from the given commit/tagU
3346
RUN build_frontend.sh
47+
RUN build_explorer.sh
3448

3549
# The only way to include plugins is to build the API manually, however this actually takes very little time as we already have all the
3650
# dependencies downloaded
@@ -48,7 +62,9 @@ FROM maurodatamapper/tomcat:$TOMCAT_IMAGE_VERSION
4862
LABEL maintainer="Oliver Freeman <oliver.freeman@bdi.ox.ac.uk>"
4963

5064
ARG MDM_BUILD_HOME=/opt/mdm
65+
ARG MDM_EXPLORER_BUILD_HOME=/opt/mdm-explorer/dist
5166

5267
ENV CATALINA_OPTS="-Xmx8g -Xms512m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+UseCompressedOops"
5368

5469
COPY --from=mdm-build ${MDM_BUILD_HOME} ${CATALINA_HOME}/webapps/ROOT
70+
COPY --from=mdm-build ${MDM_EXPLORER_BUILD_HOME} ${CATALINA_HOME}/webapps/explorer
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
precompiledBuild(){
4+
echo 'Using pre-compiled source'
5+
6+
if [[ $MDM_EXPLORER_VERSION == *SNAPSHOT ]]
7+
then
8+
MDM_EXPLORER_LIBRARY='artifacts-snapshots'
9+
else
10+
MDM_EXPLORER_LIBRARY='artifacts'
11+
fi
12+
13+
MDM_EXPLORER_URL="http://jenkins.cs.ox.ac.uk/artifactory/${MDM_EXPLORER_LIBRARY}/mauroDataMapper/mdm-explorer/mdm-explorer-${MDM_EXPLORER_VERSION}.tgz"
14+
15+
echo "Downloading precompiled sources ${MDM_EXPLORER_URL}"
16+
17+
cd /opt || exit
18+
curl -LO "$MDM_EXPLORER_URL"
19+
tar xzf "mdm-explorer-${MDM_EXPLORER_VERSION}.tgz"
20+
mkdir "$MDM_EXPLORER_BUILD_HOME"
21+
cp -r "mdm-explorer-${MDM_EXPLORER_VERSION}"/* "$MDM_EXPLORER_BUILD_HOME"
22+
23+
find "$MDM_EXPLORER_BUILD_HOME" -name main.*.js -exec sed -e "s|apiEndpoint:\"api\",|apiEndpoint:\"${MDM_EXPLORER_API_ENDPOINT}\",|g" -i {} \;
24+
}
25+
26+
precompiledBuild

postgres/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM postgres:12.0-alpine
1+
FROM postgres:12.10-alpine
22
COPY fixtures /docker-entrypoint-initdb.d
33

44
ENV POSTGRES_PASSWORD=postgresisawesome \

renovate.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
]
5+
}

0 commit comments

Comments
 (0)