Skip to content

Commit

Permalink
RISCV build databroker-cli - Adressing minor review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schildt <sebastian.schildt@de.bosch.com>
  • Loading branch information
SebastianSchildt committed Nov 9, 2023
1 parent ee1d8f6 commit 28cdad3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 4 additions & 2 deletions kuksa_databroker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ COPY ./target/aarch64-unknown-linux-musl/release/databroker /app/databroker


# RISCV is a glibc build. Rust toolchain not supported for MUSL
# Distroless has not RISCV support yet, using debian for now
#FROM gcr.io/distroless/base-debian12:debug as target-riscv64
# Normally we prefer "distroless" base images, i.e.:
# FROM gcr.io/distroless/base-debian12:debug as target-riscv64
# However, distorless has no RISCV support yet,
# (Nov 2023). Using debian unstable for now
FROM riscv64/debian:sid-slim as target-riscv64

ENV BUILDTARGET="riscv64gc-unknown-linux-gnu"
Expand Down
6 changes: 4 additions & 2 deletions kuksa_databroker/Dockerfile-cli
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ COPY ./target/aarch64-unknown-linux-musl/release/databroker-cli /app/databroker-


# RISCV is a glibc build. Rust toolchain not supported for MUSL
# Distroless has not RISCV support yet, using debian for now
#FROM gcr.io/distroless/base-debian12:debug as target-riscv64
# Normally we prefer "distroless" base images, i.e.:
# FROM gcr.io/distroless/base-debian12:debug as target-riscv64
# However, distorless has no RISCV support yet,
# (Nov 2023). Using debian unstable for now
FROM riscv64/debian:sid-slim as target-riscv64
ENV BUILDTARGET="riscv64gc-unknown-linux-gnu"
COPY ./target/riscv64gc-unknown-linux-gnu/release/databroker-cli /app/databroker-cli
Expand Down
5 changes: 5 additions & 0 deletions kuksa_databroker/build-all-targets-cli.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/bash
#
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# Building all currently supported targets for databroker-cli.
# Uses cross for cross-compiling. Needs to be executed
# before docker build, as docker collects the artifacts
# created by this script
# this needs the have cross, cargo-license and createbom dependencies installed
#
# SPDX-License-Identifier: Apache-2.0


# exit on error, to not waste any time
set -e
Expand Down
4 changes: 4 additions & 0 deletions kuksa_databroker/build-all-targets.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash
#
# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# Building all currently supported targets.
# Uses cross for cross-compiling. Needs to be executed
# before docker build, as docker collects the artifacts
# created by this script
# this needs the have cross, cargo-license and createbom dependencies installed
#
# SPDX-License-Identifier: Apache-2.0

# exit on error, to not waste any time
set -e
Expand Down

0 comments on commit 28cdad3

Please sign in to comment.