Skip to content

Replace heredocs with static files #86

@CullenSharp

Description

@CullenSharp

Oresat chroot uses heredocs1 2 extensively to generate configuration files. It would be better, in my opinion at least, to move this configuration to static files. This allows us to keep the chroot script manageable in size as mission configuration becomes more detailed. As proposed, this changes the workflow.

flowchart LR
1[Copy static files to `etc`] --> 2{Further configuration?}
2 -->|Yes| 3[Shell out to `sed` for templating]
2 -->|No| Done
Loading

This has the potentially greater benefit of simplifying configuration management and deployment.

Footnotes

  1. https://en.wikipedia.org/wiki/Here_document

  2. https://www.baeldung.com/linux/heredoc-herestring

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions