Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
fix: Update homebrew install (#547) (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino authored Apr 27, 2021
1 parent e531095 commit 4b00224
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,14 @@ ENV PATH "$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH"
# Homebrew
#
################################################################################
USER root
RUN mkdir -p /home/linuxbrew/.linuxbrew && chown -R buildbot /home/linuxbrew/
USER buildbot
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/calavera/install/fc565dc04a2035287b90de7eab16933e59827734/install.sh)"
ENV PATH "/opt/buildhome/.linuxbrew/bin:$PATH"
ENV HOMEBREW_PREFIX "/opt/buildhome/.linuxbrew"
ENV HOMEBREW_CELLAR "/opt/buildhome/.linuxbrew/Cellar"
ENV HOMEBREW_REPOSITORY "/opt/buildhome/.linuxbrew/Homebrew"
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ENV HOMEBREW_PREFIX "/home/linuxbrew/.linuxbrew"
ENV PATH "${HOMEBREW_PREFIX}/bin:${PATH}"
ENV HOMEBREW_CELLAR "${HOMEBREW_PREFIX}/Cellar"
ENV HOMEBREW_REPOSITORY "${HOMEBREW_PREFIX}/Homebrew"
ENV HOMEBREW_CACHE "/opt/buildhome/.homebrew-cache"
RUN brew tap homebrew/bundle

Expand Down

0 comments on commit 4b00224

Please sign in to comment.