etolbakov / excalidocker-rs

Convert your docker-compose into excalidraw
MIT License
124 stars 6 forks source link

fix(ordering): switch container_name_to_parents implementation to preserve order #36

Closed etolbakov closed 1 year ago

etolbakov commented 1 year ago

BTreeMap didn't workout well because it sorts keys in alphabetic order. Had to use LinkedHashMap to preserve the order in which container appear in the docker-compose.yaml.

Aims to fix https://github.com/etolbakov/excalidocker-rs/issues/35

etolbakov commented 1 year ago

Results are shown below: (spark containers renamed in reverse alphabetical order)

Screenshot 2023-07-08 at 09 25 00

(hive containers renamed in reverse alphabetical order)

Screenshot 2023-07-08 at 09 30 27
etolbakov commented 1 year ago

Addresses https://github.com/etolbakov/excalidocker-rs/issues/37

etolbakov commented 1 year ago

should address https://github.com/etolbakov/excalidocker-rs/issues/15