# insys-icom/m3_container architecture

> Architecture diagram of the GitHub repository insys-icom/m3_container, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/insys-icom/m3_container
- Repository: https://github.com/insys-icom/m3_container

## Overview

This repository provides scripts for creating Linux containers for embedded devices. The documented workflow is to choose and install an SDK, clone the repository into it, then use the scripts to create containers. The tree shows profile-specific creation scripts, root-filesystem manifests and skeleton content, plus package recipes and example containers. Those internal connections are inferred from the layout rather than verified in sampled build-script source; uncertain links are dashed.

Main entry points: [`scripts/mk_container.sh`](https://github.com/insys-icom/m3_container/blob/master/scripts/mk_container.sh) (Container builder), [`scripts`](https://github.com/insys-icom/m3_container/tree/master/scripts) (Profile scripts), [`scripts/rootfs_lists`](https://github.com/insys-icom/m3_container/tree/master/scripts/rootfs_lists) (Rootfs manifests), [`rootfs_skeleton`](https://github.com/insys-icom/m3_container/tree/master/rootfs_skeleton) (Rootfs skeleton)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_creation["Container creation"]
  node_profiles["Profile scripts"]
  node_builder["Container builder<br/>[mk_container.sh]"]
end

subgraph group_contents["Container contents"]
  node_manifests["Rootfs manifests"]
  node_skeleton["Rootfs skeleton"]
  node_recipes["Package recipes"]
end

subgraph group_examples["Example packages"]
  node_packages["Example packages"]
end

node_user(("Container builder"))
node_sdk["Installed SDK"]
node_artifact["Created container"]

node_user -->|"installs"| node_sdk
node_user -->|"runs"| node_profiles
node_profiles -.->|"delegates"| node_builder
node_profiles -.->|"selects"| node_manifests
node_builder -.->|"assembles"| node_skeleton
node_builder -.->|"uses"| node_recipes
node_builder -.->|"creates"| node_artifact
node_user -.->|"explores"| node_packages

click node_profiles "https://github.com/insys-icom/m3_container/tree/master/scripts"
click node_builder "https://github.com/insys-icom/m3_container/blob/master/scripts/mk_container.sh"
click node_manifests "https://github.com/insys-icom/m3_container/tree/master/scripts/rootfs_lists"
click node_skeleton "https://github.com/insys-icom/m3_container/tree/master/rootfs_skeleton"
click node_recipes "https://github.com/insys-icom/m3_container/tree/master/oss_packages/scripts"
click node_packages "https://github.com/insys-icom/m3_container/tree/master/closed_packages"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_profiles,node_builder toneBlue
class node_manifests,node_skeleton,node_recipes toneAmber
class node_packages toneMint
class node_user,node_sdk,node_artifact toneIndigo
```

## Components

### Container creation

- [Profile scripts](https://github.com/insys-icom/m3_container/tree/master/scripts): `scripts`
- [Container builder](https://github.com/insys-icom/m3_container/blob/master/scripts/mk_container.sh): `scripts/mk_container.sh`

### Container contents

- [Rootfs manifests](https://github.com/insys-icom/m3_container/tree/master/scripts/rootfs_lists): `scripts/rootfs_lists`
- [Rootfs skeleton](https://github.com/insys-icom/m3_container/tree/master/rootfs_skeleton): `rootfs_skeleton`
- [Package recipes](https://github.com/insys-icom/m3_container/tree/master/oss_packages/scripts): `oss_packages/scripts`

### Example packages

- [Example packages](https://github.com/insys-icom/m3_container/tree/master/closed_packages): `closed_packages`

### Other components

- **Container builder**
- **Installed SDK**
- **Created container**

## Connections

- Container builder → Installed SDK: installs (evidence: `README.md`)
- Container builder → Profile scripts: runs (evidence: `README.md`)
- Profile scripts → Container builder: delegates
- Profile scripts → Rootfs manifests: selects
- Container builder → Rootfs skeleton: assembles
- Container builder → Package recipes: uses
- Container builder → Created container: creates
- Container builder → Example packages: explores
