From 96fbb8f3b2eddf9fdf2eef817bda585c45592fd1 Mon Sep 17 00:00:00 2001 From: Fraserwill03 Date: Tue, 13 Feb 2024 11:14:58 -0700 Subject: [PATCH] Added added homebrew installation and devconatiner homebrew feature --- .devcontainer/devcontainer.json | 3 ++- Dockerfile | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 02eedd2..a956ea2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -34,7 +34,8 @@ "installTools": true, "version": "3.11" }, - "ghcr.io/warrenbuckley/codespace-features/sqlite:1": {} + "ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}, + "ghcr.io/meaningful-ooo/devcontainer-features/homebrew:2": {} }, // Use 'forwardPorts' to make a list of ports inside the container available locally. diff --git a/Dockerfile b/Dockerfile index 509f1f2..3c565fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,5 +91,11 @@ ADD --chown=1000:1000 --chmod=+x https://private-sw-downloads.s3.amazonaws.com/a ADD --chown=1000:1000 --chmod=+x src/test_net.sh . ADD --chown=1000:1000 src/nodes.list . +# Install homebrew +RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + +# Add homebrew to the path +ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH" + # Set default command CMD ["/bin/zsh"] \ No newline at end of file