opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Download EDGAR endpoint

Open mirenz1 opened this issue 1 year ago • 1 comments

Provide interface to get a CARL compatible EDGAR version for my target architecture

Tasks:

  • [ ] CARL should provide an HTTP endpoint to download EDGAR (openly accessible)
    • [ ] Serve debug binary in development mode
    • [ ] Serve directory with release binary of EDGAR for the requested architecture
  • [ ] A distribution build should include the EDGAR release within CARL's distribution
  • [ ] Add documentation on how to configure

EDGAR on peer can use this interface later to check if there is a new version available and can execute a self-update on the peer (not part of this story).

mirenz1 avatar Apr 17 '24 11:04 mirenz1

We should use the distribution-task for EDGAR. It turns out that this was already not the case for CLEO, so this should be corrected first:

  • [x] cargo ci carl distribution → CLEO via distribution-task
  • [x] In CARL, where files are added, now need to load from target/ci/distribution/opendut-cleo/*.tar.gz
  • [x] .tar.gz unpack into temp-dir (use https://crates.io/crates/tempfile/), akin to https://github.com/eclipse-opendut/opendut/blob/fc68ff9c334ae92ad67cdcc9caf1fc81465b7ea4/.ci/xtask/src/packages/cleo.rs#L107-L114
  • [x] Generate files into temp-dir (certificates etc.).
  • [x] Compress files in .tar.gz, akin to https://github.com/eclipse-opendut/opendut/blob/fc68ff9c334ae92ad67cdcc9caf1fc81465b7ea4/.ci/xtask/src/tasks/distribution.rs#L117-L136
  • [x] Put .tar.gz where it will be served.

mbfm avatar May 23 '24 07:05 mbfm