Skip to content

Commit 44b974a

Browse files
authored
Merge branch 'master' into PLAT-707-kafka-integration
2 parents cd7afce + 0161ba7 commit 44b974a

File tree

7 files changed

+45
-4
lines changed

7 files changed

+45
-4
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ FROM nginx:mainline-alpine
1717
WORKDIR /usr/share/nginx/html
1818

1919
COPY --from=build /app/dist ./
20+
21+
COPY ./docker-entrypoint.sh /usr/local/bin/
22+
23+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
24+
25+
ENTRYPOINT [ "/bin/sh", "/usr/local/bin/docker-entrypoint.sh" ]

app/config/default-env.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "1.14.4",
3+
"minimumCoreVersion": "5.2.0",
4+
"protocol": "${OPENHIM_CONSOLE_PROTOCOL}",
5+
"host": "${OPENHIM_CORE_MEDIATOR_HOSTNAME}",
6+
"hostPath": "${OPENHIM_CONSOLE_HOSTPATH}",
7+
"port": "${OPENHIM_MEDIATOR_API_PORT}",
8+
"title": "Admin Console",
9+
"footerTitle": "OpenHIM Administration Console",
10+
"footerPoweredBy": "<a href='http://openhim.org/' target='_blank'>Powered by OpenHIM</a>",
11+
"loginBanner": "",
12+
"mediatorLastHeartbeatWarningSeconds": ${OPENHIM_MEDIATOR_HEALTH_WARNING_TIMEOUT},
13+
"mediatorLastHeartbeatDangerSeconds": ${OPENHIM_MEDIATOR_HEALTH_DANGER_TIMEOUT},
14+
"showLoginForm": ${OPENHIM_CONSOLE_SHOW_LOGIN},
15+
"ssoEnabled": ${KC_OPENHIM_SSO_ENABLED},
16+
"keyCloakUrl": "${KC_FRONTEND_URL}",
17+
"keyCloakRealm": "${KC_REALM_NAME}",
18+
"keyCloakClientId": "${KC_OPENHIM_CLIENT_ID}"
19+
}

app/config/default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.16.1",
2+
"version": "1.17.0",
33
"minimumCoreVersion": "5.0.0",
44
"protocol": "https",
55
"host": "localhost",

docker-entrypoint.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Set defaults for the environment variables
2+
export OPENHIM_CONSOLE_PROTOCOL=${OPENHIM_CONSOLE_PROTOCOL:-"https"}
3+
export OPENHIM_CONSOLE_HOSTPATH=${OPENHIM_CONSOLE_HOSTPATH:-""}
4+
export OPENHIM_CORE_MEDIATOR_HOSTNAME=${OPENHIM_CORE_MEDIATOR_HOSTNAME:-"localhost"}
5+
export OPENHIM_MEDIATOR_API_PORT=${OPENHIM_MEDIATOR_API_PORT:-"8080"}
6+
export OPENHIM_MEDIATOR_HEALTH_WARNING_TIMEOUT=${OPENHIM_MEDIATOR_HEALTH_WARNING_TIMEOUT:-"60"}
7+
export OPENHIM_MEDIATOR_HEALTH_DANGER_TIMEOUT=${OPENHIM_MEDIATOR_HEALTH_DANGER_TIMEOUT:-"120"}
8+
export OPENHIM_CONSOLE_SHOW_LOGIN=${OPENHIM_CONSOLE_SHOW_LOGIN:-"true"}
9+
export KC_OPENHIM_SSO_ENABLED=${KC_OPENHIM_SSO_ENABLED:-"false"}
10+
export KC_FRONTEND_URL=${KC_FRONTEND_URL:-"http://localhost:9088"}
11+
export KC_REALM_NAME=${KC_REALM_NAME:-"platform-realm"}
12+
export KC_OPENHIM_CLIENT_ID=${KC_OPENHIM_CLIENT_ID:-"openhim-oauth"}
13+
14+
cat config/default-env.json | envsubst | tee config/default.json
15+
16+
nginx -g "daemon off;"

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "openhim-console",
33
"description": "This application provides a web application to configure and manage the OpenHIM-core component.",
4-
"version": "1.16.1",
4+
"version": "1.17.0",
55
"dependencies": {
66
"@types/http-server": "^0.10.1",
77
"http-server": "^0.12.3",

packaging/build-docker-centos-rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RELEASE_VERSION=$1
44
if [ -z ${RELEASE_VERSION} ]
55
then
6-
echo "You need so specify the release version you wish to build: e.g './build-docker-centos-rpm.sh 1.16.1'"
6+
echo "You need so specify the release version you wish to build: e.g './build-docker-centos-rpm.sh 1.17.0'"
77
echo "https://github.com/jembi/openhim-console/releases"
88
exit
99
fi

0 commit comments

Comments
 (0)