eclipse / kuksa.val.services

Repository for Vehicle Service Related implementations for Eclipse SDV
Apache License 2.0
15 stars 18 forks source link

Seat Service documentation and build #48

Closed SebastianSchildt closed 1 year ago

SebastianSchildt commented 1 year ago

Seat Service documentation is really bad and partially wrong. We need to describe

What I observed for example is, even though I could run build_release.sh after some fiddling, build_docker.sh that also builds outside docker first (is this clever), the (presumable) same stuff, it fails. Why is that?

Also the build created files

bin_vservice-seat_aarch64_release.tar.gz

that contain only licenses and .proto files (why?) but not binaries

This needs to be fixed, we need

Also devcontainer fails with

> => transferring dev_containers_feature_content_source: 326.07kB        0.1s
 => ERROR [dev_container_auto_added_stage_label 2/4] RUN apt-get update &  0.5s
------
 > [dev_container_auto_added_stage_label 2/4] RUN apt-get update &&   apt-get install -qqy curl wget zip &&   apt-get install -qqy git &&   apt-get install -qqy bash &&   apt-get install -qqy xz-utils &&   apt-get install -qqy apt-transport-https:
#0 0.316 standard_init_linux.go:228: exec user process caused: exec format error
------
Dockerfile-with-features:28
--------------------
  27 |     # Install basic utils needed inside devcontainer
  28 | >>> RUN apt-get update && \
  29 | >>>   apt-get install -qqy curl wget zip && \
  30 | >>>   apt-get install -qqy git && \
  31 | >>>   apt-get install -qqy bash && \
  32 | >>>   apt-get install -qqy xz-utils && \
  33 | >>>   apt-get install -qqy apt-transport-https
  34 |       
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update &&   apt-get install -qqy curl wget zip &&   apt-get install -qqy git &&   apt-get install -qqy bash &&   apt-get install -qqy xz-utils &&   apt-get install -qqy apt-transport-https" did not complete successfully: exit code: 1
SebastianSchildt commented 1 year ago

Docker I did not manage at all in my setup, I face two errors. During (outside docker?) build

CMake Error at conanbuildinfo.cmake:510 (message):
  Detected a mismatch for the compiler version between your conan profile
  settings and CMake:

  Compiler version specified in your conan profile: 9

  Compiler version detected in CMake: 11.3

And the docker buildx call itself does not run

# docker buildx build --platform linux/amd64,linux/arm64 -t multiarch/seat_service --output type=oci,dest=./multiarch-seat_service.tar --f seat_service/Dockerfile /home/sebastian/kuksa.val.services/seat_service/..
[+] Building 0.0s (0/0)                                                                                     
[+] Building 0.0s (0/0)                                                                                     
ERROR: oci for multi-node builds currently not supported
SebastianSchildt commented 1 year ago
  • Can the build be less dependent on local environment. e.g. build mor on docker? Maybe the dev container is that, but that is not clearly stated

I figured out how the "base" container in tools in topleve can be built and adapted documentation slightly in #47