mirror of
https://github.com/ynqa/jnv.git
synced 2025-12-16 16:04:11 -06:00
add: homebrew in linux
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
FROM mcr.microsoft.com/devcontainers/rust:1-1-bullseye
|
||||
# Use buster on Intel for testing Homebrew on Linux.
|
||||
# https://hub.docker.com/_/microsoft-devcontainers-rust
|
||||
# Please note that Homebrew on Linux does not support ARM processors.
|
||||
FROM --platform=linux/x86_64 mcr.microsoft.com/devcontainers/rust:1.0.9-buster
|
||||
|
||||
# Clang 15
|
||||
RUN apt-get update \
|
||||
@@ -10,7 +13,7 @@ RUN apt-get update \
|
||||
wget \
|
||||
software-properties-common \
|
||||
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - \
|
||||
&& apt-add-repository "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-15 main" \
|
||||
&& apt-add-repository "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-15 main" \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y clang-15 lldb-15 lld-15 \
|
||||
&& apt-get clean \
|
||||
@@ -18,3 +21,8 @@ RUN apt-get update \
|
||||
|
||||
RUN ln -s /usr/bin/clang-15 /usr/bin/clang \
|
||||
&& ln -s /usr/bin/clang++-15 /usr/bin/clang++
|
||||
|
||||
# Homebrew for Linux
|
||||
USER vscode
|
||||
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
ENV PATH=${PATH}:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/
|
||||
|
||||
Reference in New Issue
Block a user