Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to newer smui + new SMUI features #168

Merged
merged 12 commits into from
Sep 18, 2024
Prev Previous commit
Next Next commit
preview links integrated but they don't actually work!
  • Loading branch information
epugh committed Sep 17, 2024
commit 0705f263cbf725bca8030222da32f9c985091f6d
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
74 changes: 74 additions & 0 deletions smui/conf/custom-application.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
include "application.conf"

smui.target-environment.config="""{
"LIVE": {
"ecommerce": [
{
"rulesCollection": "Chorus Webshop",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/en/main-tenant/search?query=$QUERY"
}, {
"rulesCollection": "Chorus Webshop",
"tenantTag": "tenant:HA",
"previewUrlTemplate": "https://www.example.com/en/alternative-tenant/search?query=$QUERY"
}
],
"de": [
{
"rulesCollection": "MainTenantDE",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/de/main-tenant/search?query=$QUERY"
}, {
"rulesCollection": "AlternativeTenantDE",
"tenantTag": "tenant:ALTERNATIVE",
"previewUrlTemplate": "https://www.example.com/de/alternative-tenant/search?query=$QUERY"
}
],
"fr": [
{
"rulesCollection": "MainTenantFR",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/fr/main-tenant/search?query=$QUERY"
}, {
"rulesCollection": "AlternativeTenantFR",
"tenantTag": "tenant:ALTERNATIVE",
"previewUrlTemplate": "https://www.example.com/fr/alternative-tenant/search?query=$QUERY"
}
]
},
"PRELIVE": {
"ecommerce": [
{
"rulesCollection": "Chorus Webshop",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/en/main-tenant/search?query=$QUERY"
}, {
"rulesCollection": "Chorus Webshop",
"tenantTag": "tenant:HA",
"previewUrlTemplate": "https://www.example.com/en/alternative-tenant/search?query=$QUERY"
}
],
"de": [
{
"rulesCollection": "MainTenantDE",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/de/main-tenant/search?query=$QUERY"
}, {
"rulesCollection": "AlternativeTenantDE",
"tenantTag": "tenant:ALTERNATIVE",
"previewUrlTemplate": "https://www.example.com/de/alternative-tenant/search?query=$QUERY"
}
],
"fr": [
{
"rulesCollection": "MainTenantFR",
"tenantTag": null,
"previewUrlTemplate": "https://www.example.com/fr/main-tenant/search?query=$QUERY"
}, {
"rulesCollection": "AlternativeTenantFR",
"tenantTag": "tenant:ALTERNATIVE",
"previewUrlTemplate": "https://www.example.com/fr/alternative-tenant/search?query=$QUERY"
}
]
}
}"""
Loading