mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-27 03:35:15 +00:00
Merge pull request #1129 from ublue-os/homebrew2
chore: use brew's installer
This commit is contained in:
commit
84ef9d67b5
@ -9,7 +9,6 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-40}"
|
|||||||
|
|
||||||
FROM ghcr.io/ublue-os/akmods:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} as akmods
|
FROM ghcr.io/ublue-os/akmods:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} as akmods
|
||||||
FROM ghcr.io/ublue-os/akmods-extra:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} as akmods-extra
|
FROM ghcr.io/ublue-os/akmods-extra:${KERNEL_FLAVOR}-${FEDORA_MAJOR_VERSION} as akmods-extra
|
||||||
FROM ghcr.io/ublue-os/bluefin-cli:latest as bluefin-cli
|
|
||||||
|
|
||||||
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS bazzite
|
FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS bazzite
|
||||||
|
|
||||||
@ -539,8 +538,17 @@ RUN rpm-ostree install \
|
|||||||
sed -i~ -E 's/=.\$\(command -v (nft|ip6?tables-legacy).*/=/g' /usr/lib/waydroid/data/scripts/waydroid-net.sh && \
|
sed -i~ -E 's/=.\$\(command -v (nft|ip6?tables-legacy).*/=/g' /usr/lib/waydroid/data/scripts/waydroid-net.sh && \
|
||||||
ostree container commit
|
ostree container commit
|
||||||
|
|
||||||
# Copy Homebrew
|
# Homebrew
|
||||||
COPY --from=bluefin-cli /home/homebrew /usr/share/homebrew
|
RUN touch /.dockerenv && \
|
||||||
|
mkdir -p /var/home && \
|
||||||
|
mkdir -p /var/roothome && \
|
||||||
|
curl -Lo /tmp/brew-install https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh && \
|
||||||
|
chmod +x /tmp/brew-install && \
|
||||||
|
/tmp/brew-install && \
|
||||||
|
rm -rf /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor && \
|
||||||
|
rm -rf /home/linuxbrew/.linuxbrew/Homebrew/.git && \
|
||||||
|
cp -R /home/linuxbrew /usr/share/homebrew && \
|
||||||
|
ostree container commit
|
||||||
|
|
||||||
# Cleanup & Finalize
|
# Cleanup & Finalize
|
||||||
COPY system_files/overrides /
|
COPY system_files/overrides /
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Setup Brew
|
Description=Setup Brew
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
ConditionPathExists=!/etc/.linuxbrew
|
ConditionPathExists=!/etc/.linuxbrew
|
||||||
ConditionPathExists=!/var/home/linuxbrew/.linuxbrew
|
ConditionPathExists=!/var/home/linuxbrew/.linuxbrew
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
Environment=HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar
|
||||||
|
Environment=HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
|
||||||
|
Environment=HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
|
||||||
ExecStart=/usr/bin/cp -R -n /usr/share/homebrew/.linuxbrew /var/home/linuxbrew
|
ExecStart=/usr/bin/cp -R -n /usr/share/homebrew/.linuxbrew /var/home/linuxbrew
|
||||||
|
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew update
|
||||||
|
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew upgrade
|
||||||
ExecStart=/usr/bin/chown -R 1000:1000 /var/home/linuxbrew
|
ExecStart=/usr/bin/chown -R 1000:1000 /var/home/linuxbrew
|
||||||
ExecStart=/usr/bin/touch /etc/.linuxbrew
|
ExecStart=/usr/bin/touch /etc/.linuxbrew
|
||||||
|
|
||||||
|
@ -8,5 +8,8 @@ ConditionPathExists=/home/linuxbrew/.linuxbrew/bin/brew
|
|||||||
# Override the user if different UID/User
|
# Override the user if different UID/User
|
||||||
User=1000
|
User=1000
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
Environment=HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar
|
||||||
|
Environment=HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
|
||||||
|
Environment=HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
|
||||||
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew update
|
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew update
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
|
@ -8,5 +8,8 @@ ConditionPathExists=/home/linuxbrew/.linuxbrew/bin/brew
|
|||||||
# Override the user if different UID/User
|
# Override the user if different UID/User
|
||||||
User=1000
|
User=1000
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
Environment=HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar
|
||||||
|
Environment=HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
|
||||||
|
Environment=HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
|
||||||
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew upgrade
|
ExecStart=/home/linuxbrew/.linuxbrew/bin/brew upgrade
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user