Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kuksa-dev] [Kuksa] kuksa-can-provider arm64 docker image build issue
  • From: "Schildt Sebastian (ETAS-E2E/XPC-Fe)" <Sebastian.Schildt@xxxxxxxxxxxx>
  • Date: Wed, 26 Jun 2024 07:16:28 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=de.bosch.com; dmarc=pass action=none header.from=de.bosch.com; dkim=pass header.d=de.bosch.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=bKrKgk5zJUOZcftgWVPKFUmG95hwsERpRQU5f6K1NDw=; b=Jw8SX9pkE1wkHcP6WnGKgSEiksEgHm/CxgJoSWxPsifX8SWtUev/VAblaYTqxI39tWKWliEZEiv4p1JG3jtVjwpILSnt3Wu03TAZgeI9+Pk/8bCAkgRp4WQ/vqnDvMaaryftn9Pt6CEgwcbXIEE6lGRoYn8X2mz2fk9Rwf8Zb11J4pLLEZmea7mwSUs+81Jw1xhGH8syEgEwqfrYWweiW6Du8yUIidvic16jiUKU33dFhaZW6wPyFA0PSSSvs3DG+W8obHHraepiUAcnDOpXvk0UdAovcEXsnRkfrwX0ihRKLeIPExUTOrY+4BAe+qaYPKspawmtvkPUVG3zROUXxg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VEliTT8oa+2Yq8KlexZMIHFBXuwvyrrne2/HisvKIoXyiMWbYQzfF5kdTwYbZlVtqB3QUBd0bWnUR74cnOdXKm1D8XcqNiX0HtvG1grMYLpv+7uuvQI+Q3cIhPHKWydsNHmxXi+cpB/M9jMr0/5debXR/2ShRi8/KQ6QbbGbts0zfTVi3D3u34NxZKqovwh0EX+vPp4ZBCnyd3V2DtXfWvvx5o5HLNJPc5gv1V7+aK9H6CSILaVHZja9gTrOk9WcWFgtLnjuHVNctpfRd1arFAMPOBeIa2zlWPBTgLvqVcrmk73/u0NQxe1rskCS5LY6u5myEsEjxAGb14Og9ZizXA==
  • 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: AQHax21PkXQlD4ToVU211rkEk6TKmrHZnnyb
  • Thread-topic: [Kuksa] kuksa-can-provider arm64 docker image build issue

Hi,

 

I think you found a „minor“ issue in the documentation. The correct way to build is just a normal

 

docker buildx build --platform linux/arm64 -t providertest .

leading to

% docker inspect providertest | grep Arch

        "Architecture": "arm64",

 

or

 

docker buildx build --platform linux/amd64 -t providertest .

 

 % docker inspect providertest | grep Arch                     

        "Architecture": "amd64",

 

You might need to install qemu-user-static depending on your distribution. Can you check whether this will work? I will open an issue for fixing the doc

 

Sebastian

 

From: kuksa-dev <kuksa-dev-bounces@xxxxxxxxxxx> on behalf of Eduleen Talledo via kuksa-dev <kuksa-dev@xxxxxxxxxxx>
Date: Wednesday, 26. June 2024 at 04:12
To: kuksa-dev@xxxxxxxxxxx <kuksa-dev@xxxxxxxxxxx>
Cc: Eduleen Talledo <Eduleen.Talledo@xxxxxxx>, Son Dao Thanh <SonDT1@xxxxxxx>, Khang Diep Chi <KhangDC1@xxxxxxx>
Subject: [kuksa-dev] [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

 Email: eduleen.talledo@xxxxxxx

 


***********************************************************************
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