Skip to content

Commit 146aa33

Browse files
authored
Merge pull request #167 from seed-labs/arm-support
Arm support
2 parents 38a02dd + b6cb8e0 commit 146aa33

File tree

26 files changed

+471
-25
lines changed

26 files changed

+471
-25
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ubuntu:20.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
RUN echo 'exec zsh' > /root/.bashrc
5+
6+
RUN apt-get update && apt-get install -y --no-install-recommends curl dnsutils ipcalc iproute2 iputils-ping jq mtr-tiny nano netcat tcpdump termshark vim-nox zsh
7+
RUN curl -L https://grml.org/zsh/zshrc > /root/.zshrc
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.4"
2+
services:
3+
test:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
image: handsonsecurity/seedemu-base
8+
9+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM golang:1.18 AS builder1
2+
ARG DEBIAN_FRONTEND=noninteractive
3+
WORKDIR /
4+
RUN git clone https://github.com/ethereum/go-ethereum
5+
RUN cd go-ethereum && git checkout v1.10.26 && make all
6+
7+
FROM rust:1.63 AS builder2
8+
ARG DEBIAN_FRONTEND=noninteractive
9+
WORKDIR /
10+
RUN apt-get update && apt-get -y --no-install-recommends install software-properties-common build-essential curl git gcc g++ make cmake pkg-config llvm-dev libclang-dev clang protobuf-compiler
11+
RUN git clone https://github.com/wonkr/lighthouse.git
12+
WORKDIR lighthouse
13+
RUN git checkout stable
14+
RUN make install
15+
RUN make install-lcli
16+
WORKDIR /
17+
18+
FROM handsonsecurity/seedemu-base
19+
20+
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common python3 python3-pip
21+
RUN pip install web3
22+
23+
COPY --from=builder1 /go-ethereum/build/bin/geth /usr/bin
24+
COPY --from=builder1 /go-ethereum/build/bin/bootnode /usr/bin
25+
COPY --from=builder2 /usr/local/cargo/bin/lcli /usr/bin
26+
COPY --from=builder2 /usr/local/cargo/bin/lighthouse /usr/bin
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.4"
2+
services:
3+
test:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
image: handsonsecurity/seedemu-ethereum
8+
9+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM handsonsecurity/seedemu-base
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN mkdir -p /usr/share/doc/bird2/examples/
6+
RUN touch /usr/share/doc/bird2/examples/bird.conf
7+
RUN apt-get update && apt-get install -y --no-install-recommends bird2
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.4"
2+
services:
3+
test:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
image: handsonsecurity/seedemu-router
8+
9+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM golang:1.18 AS builder1
2+
ARG DEBIAN_FRONTEND=noninteractive
3+
WORKDIR /
4+
RUN git clone https://github.com/ethereum/go-ethereum
5+
RUN cd go-ethereum && git checkout v1.10.26 && make all
6+
7+
FROM rust:1.63 AS builder2
8+
ARG DEBIAN_FRONTEND=noninteractive
9+
WORKDIR /
10+
RUN apt-get update && apt-get -y --no-install-recommends install software-properties-common build-essential curl git gcc g++ make cmake pkg-config llvm-dev libclang-dev clang protobuf-compiler
11+
RUN git clone https://github.com/wonkr/lighthouse.git
12+
WORKDIR lighthouse
13+
RUN git checkout stable
14+
RUN make install
15+
RUN make install-lcli
16+
WORKDIR /
17+
18+
FROM handsonsecurity/seedemu-multiarch-base
19+
20+
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common python3 python3-pip
21+
RUN pip install web3
22+
23+
COPY --from=builder1 /go-ethereum/build/bin/geth /usr/bin
24+
COPY --from=builder1 /go-ethereum/build/bin/bootnode /usr/bin
25+
COPY --from=builder2 /usr/local/cargo/bin/lcli /usr/bin
26+
COPY --from=builder2 /usr/local/cargo/bin/lighthouse /usr/bin
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.4"
2+
services:
3+
test:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
image: handsonsecurity/seedemu-ethereum-arm64
8+
9+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ubuntu:20.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
RUN echo 'exec zsh' > /root/.bashrc
5+
6+
RUN apt-get update && apt-get install -y --no-install-recommends curl dnsutils ipcalc iproute2 iputils-ping jq mtr-tiny nano netcat tcpdump termshark vim-nox zsh
7+
RUN curl -L https://grml.org/zsh/zshrc > /root/.zshrc
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.4"
2+
services:
3+
test:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
image: handsonsecurity/seedemu-multiarch-base
8+
9+

0 commit comments

Comments
 (0)