uptane / obsolete-reference-implementation

⚠️⚠️⚠️ Obsolete ⚠️⚠️⚠️ — This repository contains a reference implementation of a pre-1.0 version of the Uptane Standard and should not be used
https://uptane.github.io
MIT License
6 stars 6 forks source link

How to run server and and client(primary & secondary) in two different pc? #174

Closed koruthu closed 5 years ago

koruthu commented 5 years ago

I want to run image repository, director repository, Timeserver, primary and secondary in different different system; how can I do that? could you help me?

JustinCappos commented 5 years ago

Sure, you're free to do this. In fact, we do this when we run our demos.

What problem are you having when setting this up?

On Tue, Mar 12, 2019 at 5:02 AM koruthu notifications@github.com wrote:

I want to run image repository, director repository, Timeserver, primary and secondary in different different system; how can I do that? could you help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uptane/uptane/issues/174, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0XD_JVtqwwYyAWupEJU8jB6ZjuSoVsks5vV20agaJpZM4bqXOl .

awwad commented 5 years ago

Please look through demo/__init__.py for the configuration values (IP, etc.) to run the demo on multiple systems and see if it works intuitively for you. If you run into issues, please let us know.

koruthu commented 5 years ago

Hi Awwad, Thanks for your solution. I would like to update primary itself as the same way we are updating secondary. Is there way to assign image for primary and and update primary itself?

awwad commented 5 years ago

In the current version of the reference implementation, the code in primary.py and demo_primary.py provides the code to handle acquisition, verification, and distribution of metadata and images, and the code in secondary.py and demo_secondary.py provides the code to handle verification for individual ECUs. Your Primary should run both in order to both serve as a distribution hub and update itself. In a later version of the reference implementation, I'll reorganize the code so that Primaries don't need to use the code in secondary.py, since this is inconvenient.

Please note that the purpose of the demonstration code (in demo/), is to provide a model of how to write your own code that uses the reference implementation to do whatever you need to do.