Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix ethereum dependency #618

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
FROM ubuntu:24.04

COPY bin /build-bin

RUN apt-get update \
&& apt-get install -y make curl git software-properties-common jq \
&& add-apt-repository -y ppa:longsleep/golang-backports \
&& add-apt-repository -y ppa:ethereum/ethereum \
&& apt-get update \
&& apt-get install -y golang-1.22 ethereum=1.14.5+build29958+noble \
&& curl -L https://foundry.paradigm.xyz | bash \
&& /root/.foundry/bin/foundryup

RUN cp -R /root/.foundry/bin/* /usr/local/bin/
&& apt-get install -y make curl git software-properties-common jq sudo

RUN /build-bin/install-deps.sh

1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ install-hooks:
.PHONY: install-deps
install-deps:
./bin/install-deps.sh
foundryup

.PHONY: deps
deps: install-hooks install-deps
Expand Down
27 changes: 22 additions & 5 deletions bin/install-deps.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
#!/usr/bin/env bash

OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -a | tr '[:upper:]' '[:lower:]')

linuxAmd64="https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.14.6-aadddf3a.tar.gz"
linuxArm64="https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-arm64-1.14.5-0dd173a7.tar.gz"


if [[ "$OS" == "linux" ]]; then
sudo apt-get update
sudo apt-get install -y make curl git software-properties-common jq
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum=1.14.5+build29958+noble
curl -L https://foundry.paradigm.xyz | bash

if [[ $ARCH == *"x86_64"* ]]; then
curl -L $linuxAmd64 | tar -xz
elif [[ $ARCH == *"aarch64"* ]]; then
curl -L $linuxArm64 | tar -xz
else
echo "Unsupported architecture: $ARCH"
exit 1
fi
elif [[ "$OS" == "darwin" ]]; then
brew tap ethereum/ethereum
brew install libusb [email protected]
curl -L https://foundry.paradigm.xyz | bash
else
echo "Unsupported OS: $OS"
exit 1
fi

curl -L https://foundry.paradigm.xyz | bash

cp -R /root/.foundry/bin/* /usr/local/bin/

foundryup

cp -R /root/.foundry/bin/* /usr/local/bin/
Loading