This repository has been archived by the owner on Feb 25, 2024. It is now read-only.
generated from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c1bd28
commit ea4915e
Showing
1 changed file
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
FROM quay.io/toolbx-images/archlinux-toolbox:latest | ||
FROM quay.io/toolbx-images/archlinux-toolbox:latest | ||
|
||
LABEL com.github.containers.toolbox="true" \ | ||
usage="This image is meant to be used with the toolbox or distrobox command" \ | ||
summary="A cloud-native terminal experience" \ | ||
maintainer="dnkmmr" | ||
LABEL com.github.containers.toolbox="true" \ | ||
usage="This image is meant to be used with the toolbox or distrobox command" \ | ||
summary="A cloud-native terminal experience" \ | ||
maintainer="dnkmmr" | ||
|
||
RUN pacman -Syu | ||
RUN pacman -Syu | ||
|
||
# Create build user | ||
RUN useradd -m --shell=/bin/bash build && usermod -L build && \ | ||
echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ | ||
echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
RUN ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update | ||
RUN ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \ | ||
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update | ||
|
||
RUN pacman -S base-devel git | ||
|
||
# Create build user | ||
RUN useradd -m --shell=/bin/bash build && usermod -L build && \ | ||
echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ | ||
echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
USER build | ||
WORKDIR /home/build | ||
|
||
RUN git clone https://aur.archlinux.org/yay.git && \ | ||
cd yay && \ | ||
makepkg -si | ||
|
||
USER root | ||
WORKDIR / | ||
|