forked from paradigmxyz/flood
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (25 loc) · 832 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.11.3
# create user
ENV USERNAME="flood"
RUN adduser $USERNAME
USER $USERNAME
# install flood
RUN mkdir /home/$USERNAME/repos
COPY ./ /home/$USERNAME/repos/flood/
WORKDIR /home/$USERNAME/repos/flood
RUN pip install ./
# install ctc
WORKDIR /home/$USERNAME/repos
RUN git clone https://github.com/checkthechain/checkthechain
WORKDIR /home/$USERNAME/repos/checkthechain
RUN pip install ./
# # install vegeta
RUN mkdir -p /home/$USERNAME/bin/vegeta
WORKDIR /home/$USERNAME/bin/vegeta_files
RUN wget https://github.com/tsenart/vegeta/releases/download/v12.8.4/vegeta_12.8.4_linux_amd64.tar.gz
RUN tar xzf vegeta_12.8.4_linux_amd64.tar.gz
WORKDIR /home/$USERNAME/bin/
RUN ln -s /home/$USERNAME/bin/vegeta_files/vegeta /home/$USERNAME/bin/vegeta
# run flood
WORKDIR /home/$USERNAME
ENTRYPOINT ["python", "-m", "flood"]