@@ -16,6 +16,7 @@ ENV DOCKER=1
1616
1717
1818COPY openthread-core-ha-config-posix.h /usr/src/
19+ COPY 0003-ha-web-ui-customizations.patch /usr/src/
1920
2021WORKDIR /usr/src
2122RUN \
@@ -37,6 +38,7 @@ WORKDIR /usr/src/ot-br-posix
3738RUN \
3839 set -x \
3940 && mv /usr/src/openthread-core-ha-config-posix.h /usr/src/ot-br-posix/third_party/openthread/repo/ \
41+ && patch -p1 < /usr/src/0003-ha-web-ui-customizations.patch \
4042 && ./script/cmake-build \
4143 -DBUILD_TESTING=OFF \
4244 -DCMAKE_INSTALL_PREFIX=/opt/otbr-beta \
@@ -85,6 +87,7 @@ ENV DOCKER=1
8587COPY openthread-core-ha-config-posix.h /usr/src/
8688COPY 0001-channel-monitor-disable-by-default.patch /usr/src/
8789COPY 0002-spinel-Clear-source-match-tables-before-restoring.patch /usr/src/
90+ COPY 0003-ha-web-ui-customizations.patch /usr/src/
8891
8992WORKDIR /usr/src
9093RUN \
@@ -111,6 +114,7 @@ RUN \
111114 && patch -p1 < /usr/src/0001-channel-monitor-disable-by-default.patch \
112115 && patch -p1 < /usr/src/0002-spinel-Clear-source-match-tables-before-restoring.patch \
113116 ) \
117+ && patch -p1 < /usr/src/0003-ha-web-ui-customizations.patch \
114118 && ./script/cmake-build \
115119 -DBUILD_TESTING=OFF \
116120 -DCMAKE_INSTALL_PREFIX=/opt/otbr-stable \
@@ -185,18 +189,6 @@ COPY --from=otbr-stable-builder /usr/sbin/mdnsd /opt/otbr-stable/sbin/mdnsd
185189COPY --from=otbr-stable-builder /usr/lib/libdns_sd.so /usr/lib/libdns_sd.so
186190COPY --from=otbr-stable-builder /usr/lib/libdns_sd.so.1 /usr/lib/libdns_sd.so.1
187191
188- # Patch app.js to use relative URLs for ingress compatibility
189- RUN echo "angular.module('StarterApp').config(['\$ httpProvider', function(\$ httpProvider) { \
190- \$ httpProvider.interceptors.push(function() { \
191- return { \
192- request: function(config) { \
193- config.url = config.url.replace(/^http:\\ /\\ /[^/]+\\ //, ''); \
194- return config; \
195- } \
196- }; \
197- }); \
198- }]);" | tee -a /opt/otbr-{stable,beta}/share/otbr-web/frontend/res/js/app.js
199-
200192COPY rootfs /
201193
202194ENV \
0 commit comments