Skip to content
Open
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
8 changes: 8 additions & 0 deletions smui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ RUN apt-get update -y && apt-get install -y python3 python3-pip

USER smui
RUN python3 -m pip install requests

# Need custom CMD to include our custom-application.conf
CMD java \
-Dpidfile.path=$SMUI_CONF_PID_PATH \
-Dlogback.configurationFile=$SMUI_CONF_LOGBACK_XML_PATH \
-Dhttp.port=$SMUI_CONF_HTTP_PORT \
-Dconfig.file="/smui/conf/custom-application.conf" \
-jar /smui/search-management-ui-assembly-$SMUI_VERSION.jar
22 changes: 22 additions & 0 deletions smui/conf/custom-application.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
include "application.conf"

smui.target-environment.config="""{
"LIVE": {
"fancy_preview": [
{
"rulesCollection": "6e1d4f5f-3436-4a85-b4d2-0c02ae6301f2",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/en/main-tenant/search?query=$QUERY"
}
]
},
"PRELIVE": {
"fancy_preview": [
{
"rulesCollection": "6e1d4f5f-3436-4a85-b4d2-0c02ae6301f2",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/en/main-tenant/search?query=$QUERY"
}
]
}
}"""