This repository was archived by the owner on Sep 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfileBETA
More file actions
53 lines (43 loc) · 1.66 KB
/
ContainerfileBETA
File metadata and controls
53 lines (43 loc) · 1.66 KB
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
# Allow build scripts to be referenced without being copied into the final image
FROM scratch AS ctx
COPY build_files /
# Base Image
FROM quay.io/fedora/fedora-kinoite:rawhide
#RUN rpm-ostree cliwrap install-to-root /
COPY system_files /
RUN mkdir -p /var/home/build && \
ostree container commit
RUN mkdir -p /usr/share/aurorae/themes && \
ostree container commit
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build-beta.sh && \
ostree container commit
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/branding-beta.sh && \
ostree container commit
RUN rm -rf /tmp/* /var/* && \
ostree container commit && \
mkdir -p /tmp /var/tmp && \
chmod 1777 /tmp /var/tmp && \
ostree container commit
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
systemctl enable initial-setup && \
# ln -s /etc/systemd/system/graphical.target.wants/initial-setup.service /usr/lib/systemd/system/initial-setup.service && \
# ln -s /etc/systemd/system/multi-user.target.wants/initial-setup.service /usr/lib/systemd/system/initial-setup.service && \
ostree container commit
# RUN mkdir -p /etc/skel/ && \
# # cp /etc/skel/* -Rv /var/home/*/ && \
# cp /etc/skel/.* -Rv /var/home/*/ && \
# ostree container commit
### LINTING
## Verify final image and contents are correct.
RUN bootc container lint