Skip to content

Commit 8cff08b

Browse files
authored
Merge pull request #10 from projectbluefin/document-oci-usage
docs: document OCI usage patterns and directory contents
2 parents 184437b + 4998b27 commit 8cff08b

File tree

1 file changed

+54
-4
lines changed

1 file changed

+54
-4
lines changed

README.md

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,56 @@
1-
# common
2-
OCI layer for things that need to be on every bluefin
1+
# bluefin-common
32

4-
## TODO
3+
Shared OCI layer containing common configuration files used across all Bluefin variants (bluefin, bluefin-dx, bluefin-lts).
54

6-
Split this repo into common and bluefin specific so Aurora can copy out what is image agnostic, that way we can share config.
5+
## What's Inside
6+
7+
This layer contains two main configuration directories:
8+
9+
### `/etc/ublue-os/` - System Configuration
10+
- Bling - CLI theming settings
11+
- Fastfetch settings - System information display configuration
12+
- Setup configuration - First-boot and system setup parameters
13+
14+
### `/usr/share/ublue-os/` - User-Space Configuration
15+
- Firefox defaults - Pre-configured Firefox settings
16+
- Flatpak overrides - Application-specific Flatpak configurations
17+
- Just recipes - Additional command recipes for system management
18+
- MOTD templates - Message of the day and tips
19+
- Setup hooks - Scripts for privileged, system, and user setup stages
20+
21+
## Usage in Containerfile
22+
23+
Reference this layer as a build stage and copy the directories you need:
24+
25+
### Copy everything:
26+
```dockerfile
27+
FROM ghcr.io/ublue-os/bluefin-common:latest AS bluefin-common
28+
29+
# Copy all system files
30+
COPY --from=bluefin-common /system_files /
31+
```
32+
33+
### Copy only system configuration:
34+
35+
This is what Aurora should use, gives shares the common set of files and keeps the images opinions seperate.
36+
37+
```dockerfile
38+
FROM ghcr.io/ublue-os/bluefin-common:latest AS bluefin-common
39+
40+
# Copy only /etc configuration
41+
COPY --from=bluefin-common /system_files/etc /etc
42+
```
43+
44+
### Copy only the image opinion:
45+
```dockerfile
46+
FROM ghcr.io/ublue-os/bluefin-common:latest AS bluefin-common
47+
48+
# Copy only /usr/share configuration
49+
COPY --from=bluefin-common /system_files/usr /usr
50+
```
51+
52+
## Building Locally
53+
54+
```bash
55+
just build
56+
```

0 commit comments

Comments
 (0)