Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] build minimal Docker container with sumo from sources
  • From: "Peter Marschke (Fujitsu)" <peter.marschke@xxxxxxxxxxx>
  • Date: Thu, 25 May 2023 14:22:26 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.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=pTJ3rtfWTgkBKZNEfM7JAg8ODXhdwE4VmuK0UTCqmzk=; b=N5cGHIKHTty2kACCxoddDJf+JMh4G4wYCLkuQZqZHkkUqjMMA/ZhLZo0sVOPoWZhI2MezWhsnPx7GP/K32/0X6k+oiddddP5luQiRgaXuAbJ7tTyWIKJHIxgfq4pXHh2tPhFvUW8umeyTGLqMakRM8iNlc1yCo/Cy61HGr6Xtw98QGXa7Xq4giPjd8Mrxc0Z57xWzpdqEY+OEtjL7xAfe1ckoJD/ZQVwZAw1b3EsdQn67KzH2ao64wyf7Qogh71cxAjm04NDOSWJOAmmFib+X0/iQUDBuGiS5ayqxRsqgj/ip0WkpS2rXdUXHbrotPOkTpraRxqBtkebh2/2l0xhcA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hw6Pw0Y+kr8te6au6YZuMnZyEu7GpZkc++ScnXqczFauqgycySqSmiF9OhBo861f+AiZ/yVFvNXWV3gT4BWAk7bObszDYBhsnbYBYl0ucs3UpIhzSMVPE+fSRgPdeuIzb3nMyUv3tq/NrTEo/XdWPmQRjmvEf+BKIM9lcdIliYFqGsZSqSKVmHnnlYf1RWqhoNVVIlxnpEaTPzqiMcCKqdZm7hGklLq9/AcDlBlQHI4gEdCIy1N/lmyMuUnKusbvO93IyBJ6Xav/8KNWU2E1F8WJjLCTg5ujAYuQER3o0WFHdHPSDNrqcsO3if4ozjiQTyomQ5Byl0DqDw5kmnmd5w==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ActionId=d785c199-00c2-4071-8105-fcd879d7baa9;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ContentBits=0;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Enabled=true;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Method=Standard;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Name=FUJITSU-RESTRICTED¬タヒ;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SetDate=2023-05-25T14:13:54Z;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SiteId=a19f121d-81e1-4858-a9d8-736e267fd4c7;
  • Thread-index: AdmIsO8Fz+rb3TgXSkitmoFRdk+0cwAAxb0AAZfHYIA=
  • Thread-topic: [sumo-user] build minimal Docker container with sumo from sources

Thanks,

this reduces the docker container size massively (now ~760MB) what is enough for my use case.

 

PS:

When using the slim python 3.11 image (docker.io/python:3.11-slim) as base I had to add some libs manually:

              libx11-6, libxext6, libxrender1, libgl1

 

 

From: sumo-user <sumo-user-bounces@xxxxxxxxxxx> On Behalf Of Jakob Erdmann
Sent: Wednesday, May 17, 2023 1:38 PM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] build minimal Docker container with sumo from sources

 

> To get an up to date sumo I build it from the  sources

 

You can also get a nightly build via

pip install -i https://test.pypi.org/simple/ eclipse-sumo

 

Am Mi., 17. Mai 2023 um 13:16 Uhr schrieb Peter Marschke (Fujitsu) <peter.marschke@xxxxxxxxxxx>:

Hello,

I am using sumo in a Docker container together with python.

Sumo is used via TRACI and libsumo without any GUI. Tools like Netedit are not required

 

To get an up to date sumo I build it from the  sources but that creates a really big container (> 1.5 GB). So I am looking for ways to

Minimize the required space of the sumo build.

 

Is there a way to reduce the space requirements with additional build parameters?

  • Reduce number of required libs
  • Not build unused additional Tools

 

 

Thanks in advance for your support and best regards

 

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


Back to the top