From 52aa745d6737ce7f1a5027c06e58075eb4cadbd8 Mon Sep 17 00:00:00 2001 From: James Calderon Date: Sun, 31 Dec 2023 13:19:53 -0500 Subject: [PATCH] removed brew --- Containerfile | 38 +++++++++++++++++++------------------- install_homebrew.sh | 5 +++++ packages.dnf | 1 + 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/Containerfile b/Containerfile index 39c54f3..9e591eb 100644 --- a/Containerfile +++ b/Containerfile @@ -3,7 +3,7 @@ FROM quay.io/toolbx-images/fedora-toolbox:38 ENV HOMEBREW_NO_ENV_HINTS=true # Add user jim -RUN useradd -m -s /bin/bash jim +# RUN useradd -m -s /bin/bash jim # Import Microsoft GPG key and add Visual Studio Code repository RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc @@ -19,26 +19,26 @@ COPY packages.dnf /tmp/packages.dnf RUN dnf -y install $(cat /tmp/packages.dnf) # # Sym-link to host binaries -# RUN ln -fs /bin/sh /usr/bin/sh && \ -# 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 /bin/sh /usr/bin/sh && \ + 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 -# Copy the install script and packages file -COPY install_homebrew.sh /home/jim/ -COPY packages.brew /home/jim/tmp/ +# # Copy the install script and packages file +# COPY install_homebrew.sh /home/jim/ +# COPY packages.brew /home/jim/tmp/ -# Change ownership to jim and make the script executable -RUN chown -R jim:jim /home/jim/install_homebrew.sh /home/jim/tmp/ && \ - chmod u+x /home/jim/install_homebrew.sh +# # Change ownership to jim and make the script executable +# RUN chown -R jim:jim /home/jim/install_homebrew.sh /home/jim/tmp/ && \ +# chmod u+x /home/jim/install_homebrew.sh -# Switch to user jim -USER jim +# # Switch to user jim +# USER jim -# Add Homebrew to PATH -ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}" +# # Add Homebrew to PATH +# ENV PATH="/home/linuxbrew/.linuxbrew/bin:${PATH}" -# Set the script to run on login -RUN echo '[[ -f $HOME/install_homebrew.sh ]] && /bin/bash $HOME/install_homebrew.sh' >> /home/jim/.bashrc +# # Set the script to run on login +# RUN echo '[[ -f $HOME/install_homebrew.sh ]] && /bin/bash $HOME/install_homebrew.sh' >> /home/jim/.bashrc diff --git a/install_homebrew.sh b/install_homebrew.sh index cc07278..8c8a446 100644 --- a/install_homebrew.sh +++ b/install_homebrew.sh @@ -5,6 +5,11 @@ if [ ! -d "/home/linuxbrew/.linuxbrew" ]; then # Install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /var/home/jim/.bashrc + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + + sudo yum groupinstall -y 'Development Tools' + # Install Homebrew applications from the list brew install $(cat /home/jim/tmp/packages.brew) fi diff --git a/packages.dnf b/packages.dnf index feb16a7..1f52e8f 100644 --- a/packages.dnf +++ b/packages.dnf @@ -1,3 +1,4 @@ +dnf-plugins-core tree neofetch stow