GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MiOS/Containerfile at main · Kabuki94/MiOS

Expand file tree

/

Containerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
119 lines (103 loc) · 5.11 KB
/

Containerfile

Copy path

File metadata and controls

119 lines (103 loc) · 5.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# syntax=docker/dockerfile:1.9
# ============================================================================
# MiOS - Unified Image (v0.1.4)
# ============================================================================
# One image. Every role. Every surface. Every GPU vendor.
#
# Base: Controlled by MIOS_BASE_IMAGE in .env.mios
# Default: ghcr.io/ublue-os/ucore-hci:stable-nvidia
# Already ships signed NVIDIA kmods (kmod-nvidia-open) matched to
# the ucore-hci kernel.
# AMD: Mesa + ROCm in-image (PACKAGES.md packages-gpu-amd-compute)
# Intel: intel-compute-runtime + intel-media-driver (packages-gpu-intel-compute)
#
# v0.1.4 Architecture: Rootfs-Native Repository
# - usr/, etc/, var/ directories promoted to the repository root.
# - matches upstream bootc and native Linux filesystem standards.
# ============================================================================
ARG BASE_IMAGE=ghcr.io/ublue-os/ucore-hci:stable-nvidia # @track:IMG_BASE
# ----------------------------------------------------------------------------
# ctx stage: build context (scripts, system_files, manifests, overlay dirs)
# ----------------------------------------------------------------------------
FROM scratch AS ctx
COPY automation/ /ctx/automation/
COPY usr/ /ctx/usr/
COPY etc/ /ctx/etc/
COPY home/ /ctx/home/
# v0.1.4: PACKAGES.md moved to usr/share/mios/ for FHS compliance.
COPY usr/share/mios/PACKAGES.md /ctx/PACKAGES.md
COPY VERSION /ctx/VERSION
COPY config/artifacts/ /ctx/bib-configs/
COPY tools/ /ctx/tools/
# ----------------------------------------------------------------------------
# main stage
# ----------------------------------------------------------------------------
FROM ${BASE_IMAGE}
LABEL org.opencontainers.image.title="MiOS"
LABEL org.opencontainers.image.description="Unified immutable cloud-native workstation OS (desktop/k3s/ha/hybrid)"
LABEL org.opencontainers.image.source="https://github.com/MiOS-DEV/MiOS-bootstrap"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL org.opencontainers.image.version="v0.1.4"
LABEL containers.bootc="1"
LABEL ostree.bootable="1"
# Set /sbin/init as the default command for bootc compatibility
CMD ["/sbin/init"]
# Build-time user provisioning - injected by mios-build-local.ps1 via --build-arg.
# 31-user.sh reads these as MIOS_USER / MIOS_PASSWORD_HASH env vars.
# ARG values do NOT persist into the final image (unlike ENV).
ARG MIOS_USER=mios
ARG MIOS_PASSWORD_HASH=
ARG MIOS_HOSTNAME=mios
ARG MIOS_FLATPAKS=
# Build context mounted read-only
COPY --from=ctx /ctx /ctx
# Inject flatpaks into the install list if provided
RUN if [[ -n "${MIOS_FLATPAKS}" ]]; then \
echo "${MIOS_FLATPAKS}" | tr ',' '\n' > /ctx/usr/share/mios/flatpak-list; \
fi
# Pre-pull images for Logically Bound Images (LBI)
# DISABLED: nested podman-pull requires --privileged buildkit which docker/build-push-action
# does not grant on ubuntu-24.04 GitHub-hosted runners. Either enable LBI via a Quadlet
# AutoUpdate=registry pull at first boot, or move pre-pulls to a self-hosted runner with
# privileged buildkit. Keeping the intent here for the migration path.
# RUN podman pull docker.io/postgres:15 || true \
# && podman pull docker.io/ollama/ollama:latest || true \
# && podman pull docker.io/guacamole/guacamole:latest || true \
# && podman pull docker.io/guacamole/guacd:latest || true \
# && podman pull quay.io/ceph/ceph:latest || true
# Install essential security packages
RUN dnf install -y --skip-unavailable --setopt=install_weak_deps=False \
policycoreutils-python-utils \
selinux-policy-targeted \
firewalld \
audit \
fapolicyd \
crowdsec \
usbguard \
kernel-devel \
&& dnf clean all
# ---------------------------------------------------------------------------
# Overlay rootfs content onto the system.
# ---------------------------------------------------------------------------
# MiOS v0.1.4: delegate system_files overlay to the script so the
# /usr/local -> /var/usrlocal symlink on ucore/bootc bases is handled correctly.
RUN bash /ctx/automation/08-system-files-overlay.sh
# Run the full numbered pipeline (orchestrated by automation/build.sh).
RUN --mount=type=cache,dst=/var/cache/libdnf5,sharing=locked \
--mount=type=cache,dst=/var/cache/dnf,sharing=locked \
set -e; \
chmod +x /ctx/automation/build.sh /ctx/automation/*.sh 2>/dev/null || true; \
chmod +x /usr/libexec/mios/copy-build-log.sh; \
/ctx/automation/build.sh
# MANDATORY CLEANUP for bootc container lint
RUN rm -rf /var/log/* /var/tmp/* /var/cache/dnf/* /var/cache/libdnf5/* /tmp/* \
&& find /run -mindepth 1 -maxdepth 1 ! -name 'secrets' -exec rm -rf {} + 2>/dev/null || true
# Install bootc bash completions
RUN bootc completion bash > /etc/bash_completion.d/bootc
# -- systemd-sysext consolidation ----------
RUN mkdir -p /usr/lib/extensions/source \
&& chmod +x /ctx/tools/mios-sysext-pack.sh \
&& /ctx/tools/mios-sysext-pack.sh /usr/lib/extensions/source || true
RUN rm -rf /ctx \
&& ostree container commit
RUN bootc container lint
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.