File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,8 +19,13 @@ RUN ZENOH_VERSION="1.7.2" && \
1919 fi && \
2020 wget -O /tmp/zenoh.zip "https://www.eclipse.org/downloads/download.php?file=/zenoh/zenoh/${ZENOH_VERSION}/zenoh-${ZENOH_VERSION}-${ARCH}-unknown-linux-gnu-debian.zip&r=1" && \
2121 unzip /tmp/zenoh.zip -d /tmp/zenoh && \
22- dpkg -i /tmp/zenoh/zenohd_${ZENOH_VERSION}_${DEB_ARCH}.deb /tmp/zenoh/zenoh-plugin-storage-manager_${ZENOH_VERSION}_${DEB_ARCH}.deb || true && \
23- rm -rf /tmp/zenoh.zip /tmp/zenoh
22+ apt-get update && \
23+ printf '%s\n ' '#!/bin/sh' 'exit 0' > /usr/local/bin/systemctl && chmod +x /usr/local/bin/systemctl && \
24+ dpkg -i /tmp/zenoh/zenohd_${ZENOH_VERSION}_${DEB_ARCH}.deb /tmp/zenoh/zenoh-plugin-storage-manager_${ZENOH_VERSION}_${DEB_ARCH}.deb || \
25+ apt-get install -f -y --no-install-recommends && \
26+ rm -f /usr/local/bin/systemctl && \
27+ rm -rf /var/lib/apt/lists/* /tmp/zenoh.zip /tmp/zenoh && \
28+ zenohd --version
2429
2530RUN mkdir -p /run/integration-tests
2631
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub async fn build(
1010 dockerfile : impl AsRef < Path > ,
1111 context : impl AsRef < Path > ,
1212) -> Output {
13- tokio:: process:: Command :: new ( "docker" )
13+ let out = tokio:: process:: Command :: new ( "docker" )
1414 . arg ( "build" )
1515 . arg ( "-t" )
1616 . arg ( tag)
@@ -19,7 +19,17 @@ pub async fn build(
1919 . arg ( context. as_ref ( ) . to_str ( ) . unwrap ( ) )
2020 . output ( )
2121 . await
22- . unwrap ( )
22+ . unwrap ( ) ;
23+
24+ if !out. status . success ( ) {
25+ panic ! (
26+ "docker build failed:\n {}{}" ,
27+ String :: from_utf8_lossy( & out. stdout) ,
28+ String :: from_utf8_lossy( & out. stderr) ,
29+ ) ;
30+ }
31+
32+ out
2333}
2434
2535/// Starts a container with a temporary directory mounted to /run/integration-tests
Original file line number Diff line number Diff line change @@ -16,8 +16,11 @@ RUN ZENOH_VERSION="1.7.2" && \
1616 fi && \
1717 wget -O /tmp/zenoh.zip "https://www.eclipse.org/downloads/download.php?file=/zenoh/zenoh/${ZENOH_VERSION}/zenoh-${ZENOH_VERSION}-${ARCH}-unknown-linux-gnu-debian.zip&r=1" && \
1818 unzip /tmp/zenoh.zip -d /tmp/zenoh && \
19- dpkg -i /tmp/zenoh/zenohd_${ZENOH_VERSION}_${DEB_ARCH}.deb /tmp/zenoh/zenoh-plugin-storage-manager_${ZENOH_VERSION}_${DEB_ARCH}.deb || true && \
20- rm -rf /tmp/zenoh.zip /tmp/zenoh
19+ apt-get update && \
20+ dpkg -i /tmp/zenoh/zenohd_${ZENOH_VERSION}_${DEB_ARCH}.deb /tmp/zenoh/zenoh-plugin-storage-manager_${ZENOH_VERSION}_${DEB_ARCH}.deb || \
21+ apt-get install -f -y --no-install-recommends && \
22+ rm -rf /var/lib/apt/lists/* /tmp/zenoh.zip /tmp/zenoh && \
23+ zenohd --version
2124
2225COPY zenohd.json5 /etc/zenohd.json5
2326
You can’t perform that action at this time.
0 commit comments