-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathContainerfile
49 lines (49 loc) · 2.01 KB
/
Containerfile
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
ARG VERSION="${VERSION:-latest}"
FROM ghcr.io/ublue-os/bluefin:${VERSION}
ARG FLATPAKS_INSTALL=true
COPY files /
COPY cosign.pub /usr/etc/pki/containers/ii.pub
RUN sed -i -e '0,/enabled=0/s//enabled=1/' /etc/yum.repos.d/fedora-updates-testing.repo && \
rpm-ostree install \
vim \
gdisk \
bootupd \
grub2 \
ostree-grub2 \
grub2-efi-x64 \
efibootmgr \
nc \
cloud-utils \
strace \
docker \
bootc \
osbuild-selinux \
netcat \
qemu \
libvirt \
virt-manager \
java-17-openjdk
RUN bootupctl backend generate-update-metadata && \
echo -e '\n\nii ALL=(ALL) NOPASSWD:ALL\n\n' >> /etc/sudoers
COPY --from=cgr.dev/chainguard/dive:latest /usr/bin/dive /usr/bin/dive
COPY --from=cgr.dev/chainguard/flux:latest /usr/bin/flux /usr/bin/flux
COPY --from=cgr.dev/chainguard/helm:latest /usr/bin/helm /usr/bin/helm
COPY --from=cgr.dev/chainguard/ko:latest /usr/bin/ko /usr/bin/ko
COPY --from=cgr.dev/chainguard/minio-client:latest /usr/bin/mc /usr/bin/mc
COPY --from=cgr.dev/chainguard/kubectl:latest /usr/bin/kubectl /usr/bin/kubectl
RUN curl -Lo ./kind "https://github.com/kubernetes-sigs/kind/releases/latest/download/kind-$(uname)-amd64" && \
chmod +x ./kind && \
mv ./kind /usr/bin/kind
RUN wget https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -O /tmp/docker-compose && \
install -c -m 0755 /tmp/docker-compose /usr/bin
RUN systemctl enable docker.socket && \
systemctl enable podman.socket
RUN mkdir minecraftforge && \
cd minecraftforge && \
wget "https://maven.minecraftforge.net/net/minecraftforge/forge/1.19-41.1.0/forge-1.19-41.1.0-mdk.zip" -O temp.zip && \
unzip temp.zip && \
rm temp.zip
RUN [ "$FLATPAKS_INSTALL" = "true" ] && flatpak remote-add --installation=image --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \
flatpak install --installation=image -y org.mozilla.firefox net.sonic_pi.SonicPi edu.mit.Scratch org.eclipse.Java
RUN rm -fr /tmp/* /var/* \
&& ostree container commit