This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
forked from ublue-os/bluefin
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wolfi): move bluefin-cli to wolfi (ublue-os#717)
- Loading branch information
Showing
4 changed files
with
42 additions
and
79 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,29 +1,21 @@ | ||
FROM ghcr.io/homebrew/brew | ||
# From https://github.com/Homebrew/brew/pkgs/container/brew | ||
FROM ghcr.io/ublue-os/wolfi-toolbox | ||
|
||
LABEL com.github.containers.toolbox="true" \ | ||
usage="This image is meant to be used with the toolbox or distrobox command" \ | ||
summary="The Bluefin Command Line experience" \ | ||
summary="A new cloud-native terminal experience powered by Wolfi and Homebrew" \ | ||
maintainer="jorge.castro@gmail.com" | ||
|
||
COPY ./toolboxes/packages.bluefin-cli /toolbox-packages | ||
COPY ./toolboxes/brew_script.bluefin-cli /etc/profile.d/brew_pkgs.sh | ||
|
||
USER root | ||
# Update image | ||
RUN apk update && \ | ||
apk upgrade | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
$(cat /toolbox-packages | xargs) && \ | ||
rm -rd /var/lib/apt/lists/* | ||
# Add optional packages | ||
RUN grep -v '^#' /toolbox-packages | xargs apk add | ||
|
||
RUN rm /toolbox-packages | ||
|
||
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 | ||
# Change root shell to BASH | ||
|
||
RUN echo "ALL ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
USER linuxbrew | ||
RUN sed -i -e '/^root/s/\/bin\/ash/\/bin\/bash/' /etc/passwd |
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
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,47 +1,5 @@ | ||
bash | ||
apt-utils | ||
bash-completion | ||
bc | ||
bzip2 | ||
curl | ||
dialog | ||
diffutils | ||
findutils | ||
gnupg | ||
gnupg2 | ||
gpgsm | ||
hostname | ||
iproute2 | ||
iputils-ping | ||
less | ||
locales | ||
lsof | ||
man-db | ||
manpages | ||
ncurses-base | ||
nano | ||
openssh-client | ||
passwd | ||
pigz | ||
pinentry-curses | ||
#brew | ||
git | ||
procps | ||
rsync | ||
sudo | ||
tcpdump | ||
time | ||
traceroute | ||
tree | ||
tzdata | ||
unzip | ||
util-linux | ||
wget | ||
xauth | ||
xz-utils | ||
zip | ||
libgl1 | ||
libegl1-mesa | ||
libgl1-mesa-glx | ||
libegl1 | ||
libglx-mesa0 | ||
libvulkan1 | ||
mesa-vulkan-drivers | ||
sudo-rs |
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,8 +1,33 @@ | ||
bash | ||
ruby-3.3 | ||
git | ||
bzip2 | ||
coreutils | ||
curl | ||
diffutils | ||
findmnt | ||
findutils | ||
gnupg | ||
gpg | ||
iproute2 | ||
iputils | ||
keyutils | ||
libcap | ||
mount | ||
ncurses | ||
ncurses-terminfo | ||
net-tools | ||
openssh-client | ||
pigz | ||
posix-libc-utils | ||
build-base | ||
procps | ||
sudo-rs | ||
rsync | ||
su-exec | ||
tcpdump | ||
tree | ||
tzdata | ||
umount | ||
util-linux | ||
util-linux-misc | ||
wget | ||
xz | ||
zip | ||
vulkan-loader |