Skip to content

Commit 6e5bb24

Browse files
authored
Merge pull request #57318 from zmarano/usrmerge-thingsboard
usrmerge /lib - thingsboard version bump
2 parents c7254d4 + 54dadb1 commit 6e5bb24

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

thingsboard.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
package:
22
name: thingsboard
33
version: "4.0.1"
4-
epoch: 8
4+
epoch: 50
55
description: "Open-source IoT Platform - Device management, data collection, processing and visualization."
66
copyright:
77
- license: Apache-2.0
8+
dependencies:
9+
runtime:
10+
- merged-lib
11+
- wolfi-baselayout
812

913
environment:
1014
contents:
@@ -49,7 +53,9 @@ subpackages:
4953
description: "Executes user-defined JavaScript functions in isolation for the ThingsBoard rule engine."
5054
dependencies:
5155
runtime:
56+
- merged-lib
5257
- nodejs-20
58+
- wolfi-baselayout
5359
pipeline:
5460
- name: Move tb-js-executor to target directories
5561
runs: |
@@ -93,16 +99,21 @@ subpackages:
9399
description: Handles MQTT-based device communication and API requests for ThingsBoard.
94100
dependencies:
95101
runtime:
102+
- merged-lib
96103
- openjdk-17-default-jvm
104+
- wolfi-baselayout
97105
pipeline:
98106
- name: Extract tb-mqtt-transport to target directories
99107
runs: |
108+
mkdir -p ${{targets.subpkgdir}}/usr/lib
100109
mkdir -p ${{targets.subpkgdir}}/usr/bin
101110
cd msa/transport/mqtt/target
102111
dpkg-deb -x tb-mqtt-transport.deb ${{targets.subpkgdir}}
103112
cp start-tb-mqtt-transport.sh ${{targets.subpkgdir}}/usr/bin
104113
mkdir -p ${{targets.subpkgdir}}/config
105114
cp ${{targets.subpkgdir}}/usr/share/tb-mqtt-transport/conf/* ${{targets.subpkgdir}}/config
115+
mv ${{targets.subpkgdir}}/lib/* ${{targets.subpkgdir}}/usr/lib
116+
rmdir ${{targets.subpkgdir}}/lib
106117
test:
107118
pipeline:
108119
- name: Test mqtt-transport server logs
@@ -120,25 +131,30 @@ subpackages:
120131
- eudev
121132
- fontconfig
122133
- lcms2
134+
- merged-lib
123135
- openjdk-17-default-jvm
124136
- ttf-dejavu
137+
- wolfi-baselayout
125138
pipeline:
126139
- name: Extract tb-node to target directories
127140
runs: |
141+
mkdir -p ${{targets.subpkgdir}}/usr/lib
128142
mkdir -p ${{targets.subpkgdir}}/usr/bin
129143
cd msa/tb-node/target
130144
dpkg-deb -x thingsboard.deb ${{targets.subpkgdir}}
131145
cp start-tb-node.sh ${{targets.subpkgdir}}/usr/bin
132146
mkdir -p ${{targets.subpkgdir}}/config
133147
cp -r ${{targets.subpkgdir}}/usr/share/thingsboard/conf/* ${{targets.subpkgdir}}/config
148+
mv ${{targets.subpkgdir}}/lib/* ${{targets.subpkgdir}}/usr/lib
149+
rmdir ${{targets.subpkgdir}}/lib
134150
test:
135151
pipeline:
136152
# This test needs to be run in order to ensure that tomcat-embed-core exists to provide jakarta/servlet/Filter.class (issue with pombump before)
137153
- name: Test for tomcat-embed-core
138154
runs: |
139155
cd /usr/share/thingsboard/bin/
140156
unzip thingsboard.jar
141-
ls BOOT-INF/usr/lib/ | grep -q "tomcat-embed-core" || { echo "tomcat-embed-core not found"; exit 1; }
157+
ls BOOT-INF/lib/ | grep -q "tomcat-embed-core" || { echo "tomcat-embed-core not found"; exit 1; }
142158
- name: Test server logs
143159
uses: test/daemon-check-output
144160
with:
@@ -153,7 +169,9 @@ subpackages:
153169
description: "Hosts static web UI content using a lightweight Express.js component"
154170
dependencies:
155171
runtime:
172+
- merged-lib
156173
- nodejs-20
174+
- wolfi-baselayout
157175
pipeline:
158176
- name: Move tb-web-ui to target directories
159177
runs: |

0 commit comments

Comments
 (0)