Skip to content

Commit

Permalink
fix(brew): more linux compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Jul 19, 2023
1 parent bdc47c9 commit 214c31f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
rm /etc/apt/sources.list.d/github-cli.list

# Do the install in user-space
RUN useradd \
--create-home \
--shell /bin/zsh \
--uid 1000 \
--gid 1000 \
--non-unique \
codespace
USER codespace
WORKDIR /tmp/shakefu/home

Expand Down
2 changes: 2 additions & 0 deletions install/linux_amd64/02-brew
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ $RUN /bin/bash "$TMP"
# picked up by dash hopefully
if ! grep 'linuxbrew' /etc/profile; then
$RUN echo 'PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' | sudo tee -a /etc/profile
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> "$HOME/.profile"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi

# Linux homebrew does not have permissions for its lock files in this dir, so we
Expand Down

0 comments on commit 214c31f

Please sign in to comment.