Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leda-dev] SeatAdjusterApp launch in Leda
  • From: Antara Dey <Antara.Dey@xxxxxxxxxxxxxxxxxx>
  • Date: Mon, 5 Jun 2023 10:30:24 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=itk-engineering.de; dmarc=pass action=none header.from=itk-engineering.de; dkim=pass header.d=itk-engineering.de; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hpfiI5FYDD/RLWg3OjLvrhisNI/DOMadGVT4B610opA=; b=IVvmb3Ne4qLYa6R2Oa+qeTK1DasMFG9yAzj1xpUGpiA0KMMIvJYYjXumDNK7NPzYrrPzcw5zi1KDaWJJbawxcU32OUG3r+PwSMAJN65u+FQgunYacUTcZ6QbtAEKLq5qI+zdaWCbXyeqM74HxadRmjfbzxQlIqSAR9/48bUUrWYtBb45+3ZCXaSLPEjJ26yXBG36rlc7PD3/fqSXn3RG92ZLj/gSqYh9cz6xTNDJu87dHZgI8tus7tELxRfG4RIhpCBOdA6xZSlUfZQjHZVGfONuYaK6O58nid8d+e0L6ONNmA0twVUEvFt2KmcKUVm5cJe7hewK6i+B++Nj1/eCzg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LHhBEGJbgsEZ3qZ3Vz3uipEoNEeiTNh5KhxFP11QMNzovcGg7OeN6HhJXYcPtqhDoGCRgNaZwMvpg47CQF6gbf7ZR2qmDBg5YgEPPMnvRRza6aXl7bKLv4vlnYfeKTDG7XIA0nG8gu+GGXL8Hwq4pCC35WhsoRx9l5ML2q954R3UEg5AxmwY4jw+vp9YOJ35PA2/3bKrjmETDPHE+ynDbRJaUa5s2/QeOAh77DU9mOA9tkogUcpIyPlLQHL6crVk+iKsMgc+GVOmYwzHyxMa1+E1FpR1WEmmEHc/G40ogcmgemBUsmLuSjWBcuC7Yrv35BGyrj4y6IX+nfPZOIucFg==
  • Delivered-to: leda-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/leda-dev/>
  • List-help: <mailto:leda-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/leda-dev>, <mailto:leda-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/leda-dev>, <mailto:leda-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdmXlXfXDS/rCWZKStC9d6s+Y5wvYA==
  • Thread-topic: SeatAdjusterApp launch in Leda

Hello Leda Community,

 

I am a student currently working at ITK.

I, and my team have been exploring Eclipse Leda, to understand its underlying functionality and how it interacts with the contributor pieces of SDV.

I am currently facing a challenge with debugging the application container in Leda and seek some support on it.

 

First, I used to Velocitas examples tutorial to launch the services in VS Code and traced the logs.

Then, I followed the Leda documentation and launched the Seat Adjuster Vehicle App as a Kanto-CM container in Leda. I used the Dockerfile from Velocitas repository to create a docker image – which includes the necessary modifications for it to work.  All other containers are also successfully up and running.

 

Issue: The SeatAdjusterApp does not work as expected in Leda. It does not launch completely. It subscribes to MQTT topic /seatadjuster/setPosition/request. But, as seen from the Kantui logs, it fails to further subscribe to the VehicleDataBroker. Due to this, the MQTT publish message command (move seat position) does not render any output from the app. The functionality of the application works as expected in Velocitas.

 

I have attached the Container Manifest, Dockerfile and Kantui logs for your reference.

 

Kindly provide support and/or information on this issue to proceed further.

 

Best regards,

Antara Dey

Work Student

ITK Engineering GmbH, Stuttgart-Vaihingen

 

Attachment: Seat_adj_incomplete_launch.png
Description: Seat_adj_incomplete_launch.png

# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0

# syntax=docker/dockerfile:1.2

# Build stage, to create the executable
FROM --platform=linux/amd64 python:3.10-slim-bullseye@sha256:1ee6094f44c67781fa9533a4215f44f80dd3f43a68751ad2c855712116c03b05 as builder

RUN pip install --upgrade pip

RUN apt-get update && apt-get install -y binutils

# COPY ignores the source directory structure, so using ADD
#COPY * /home/seat_adjuster/
ADD . /home/seat_adjuster/

# Remove this installation for Arm64 once staticx has a prebuilt wheel for Arm64
RUN /bin/bash -c 'set -ex && \
    ARCH=`uname -m` && \
    if [ "$ARCH" == "aarch64" ]; then \
    echo "ARM64" && \
    apt-get install -y gcc && \
    pip3 install --no-cache-dir scons; \
    fi'

WORKDIR /home/seat_adjuster/

RUN apt-get install -y git
RUN pip3 install --no-cache-dir pyinstaller \
    && pip3 install --no-cache-dir patchelf==0.17.0.0 \
    && pip3 install --no-cache-dir staticx \
    && pip3 install --no-cache-dir -r requirements.txt \
    && pip3 install --no-cache-dir -r requirements-links.txt

RUN pyinstaller --clean -F -s src/main.py

WORKDIR /home/seat_adjuster/dist/

RUN staticx main run-exe

# Runner stage, to copy the executable
FROM scratch

COPY --from=builder /home/seat_adjuster/dist/run-exe /dist/

WORKDIR /tmp
WORKDIR /dist

ENV PATH="/dist:$PATH"

#LABEL org.opencontainers.image.source="https://github.com/eclipse-velocitas/vehicle-app-python-template";

LABEL org.opencontainers.image.source=https://github.com/antaradey-itk/vehicle-apps-images

CMD ["./run-exe"]

Attachment: seatadjuster-app.json
Description: seatadjuster-app.json


Back to the top