Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[kuksa-dev] [Kuksa] kuksa-can-provider arm64 docker image build issue
  • From: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>
  • Date: Wed, 26 Jun 2024 02:12:29 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fpt.com; dmarc=pass action=none header.from=fpt.com; dkim=pass header.d=fpt.com; 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=70kan9kj/w29sI4CM4XUPpqrJw7MrjsJIwT79xVBUCk=; b=iCcP/CjZqDJDjSoZ/9GNn+/LxMUCEtzVt9nJsXOMDU30CPxokYnph/mKHXXXbkaNKjKdWAnBAUgLYyxfRx/Jq93patAGVDoo5fUyI1+2mBKy3JuC0lsuTC7zdpj3EKPUuODcMXM3U5BQqW1iD2yDf92/IH5rCHDH0ha15Y8hJi4HuNiOsYkTeZpFJY4yZwDdgrOmg5fEvsIG32sU9VKELVeYKZDlUG86YXesq/+DWnFfYSO2d7WRqY1TlQraBzQxiJ1QscBDT7/6cQs5mowv4DBpk0uG5lTRCGLyHm8mPAxX1nDqUJQWy/D0gE3m2ypcw5sMRFY/vGHirp32rSnS6w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fSo+ZTsVBoceo4OtXgAJdv3CkLcpwuagsi6XZFvmc1o0a1C9eGtqFag1uNUgesj4bV1dKNX9xYMhR1bg7cPLz2z4cR5j6iLKfewKaCCRMehVowiURtyk6OCGYEA2+FgxaRkMGyVl1lTzpF0kcxKwU1T1aXD1qhnSE7qT1NhBka9SOsWbL87pJT4mAwSsM/e4ocamPXT0y4iEEGbeOW2Ev0O1e3qw9JzOp8S71bTKUbb3pxCqtf1EmQ+L4g+nARBrOidG3D9lGrVwyXJvbkP/HQ9K8cLXRTtJ+rWck8dFjJXKwDPyJ4G7DB6VqMxIWcpsrpIZnUva0ezM79dIxIGJSA==
  • Delivered-to: kuksa-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/kuksa-dev/>
  • List-help: <mailto:kuksa-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/kuksa-dev>, <mailto:kuksa-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/kuksa-dev>, <mailto:kuksa-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHax21PkXQlD4ToVU211rkEk6TKmg==
  • Thread-topic: [Kuksa] kuksa-can-provider arm64 docker image build issue

Hi Kuksa-dev Team,

We found a maybe a minor issue in the Dockerfile when building it for arm64 machines.

Background:
We are creating a POC using the vehicle-app-cpp-template.
Everything worked great when we built the docker images in our host machine (amd64) and deployed it in ubuntu test machine (amd64).
However, when we built the docker image for arm64 and still using our host machine (amd64) and to be deployed in our edge devices (arm64).
The final image is still in amd64.

This is how docker build the apps:
$ cd kuksa-can-provider
$ docker build -f Dockerfile --progress=plain --build-arg TARGETPLATFORM=linux/arm64 -t localhost:12345/feeder-can:0.4.3 .

After building it we docker image inspect the docker image.: 
$ docker image inspect localhost:12345/feeder-can:0.4.3 | grep Arch
$ "Architecture": "amd64",

We fixed it by modifying cd kuksa-can-provider/Dockerfile.
# FROM gcr.io/distroless/base-debian12
FROM --platform=$TARGETPLATFORM gcr.io/distroless/base-debian12
and

After this minor fix. We can now successfully deploy it with our edge devices (arm64).

Does our Dockerfile changes is the correct way to go forward or do you recommend another way to build docker(arm64) images using host(amd64)?

Your response is highly appreciated.


Thank you, 
 EDULEEN TALLEDO (Mr.)
 Software Development Engineer
 FPT Automotive -- Philippines
 IT Park, Cebu City, Philippines 6000
 Mobile: +63 960-2430-526 | +84 379-488-928


***********************************************************************
IMPORTANT NOTICE
This email may contain confidential and/ or privileged information that belongs to FPT Software. If you are not the intended recipient or might have received this email by accident from an unreliable source, please notify the sender from FPT Software immediately and destroy this email. Keep in mind that any unauthorized copying, editing, disclosure or distribution of the material in this email is strictly forbidden, plus against the law by which FPT Software and involved clients abide.

Back to the top