|
|
|
@ -7,10 +7,6 @@ SHELL ["/bin/bash", "-c"] |
|
|
|
|
RUN apt update && apt upgrade -y && apt update -y && apt install \ |
|
|
|
|
libgmp-dev libssl-dev curl git jq make gcc g++ bash sudo python3 python3-pip -y |
|
|
|
|
|
|
|
|
|
RUN python3 -m pip install pyhmy==20.5.16 |
|
|
|
|
|
|
|
|
|
RUN python3 -m pip install pytest==5.4.3 |
|
|
|
|
|
|
|
|
|
RUN git clone https://github.com/harmony-one/harmony.git |
|
|
|
|
|
|
|
|
|
RUN git clone https://github.com/harmony-one/bls.git |
|
|
|
@ -18,7 +14,7 @@ RUN git clone https://github.com/harmony-one/bls.git |
|
|
|
|
RUN git clone https://github.com/harmony-one/mcl.git |
|
|
|
|
|
|
|
|
|
# Build to fetch all dependencies for faster test builds |
|
|
|
|
RUN cd harmony && make |
|
|
|
|
RUN cd harmony && go get github.com/pborman/uuid && go get github.com/rjeczalik/notify && make |
|
|
|
|
|
|
|
|
|
RUN rm -rf harmony |
|
|
|
|
|
|
|
|
@ -31,6 +27,10 @@ COPY tests tests |
|
|
|
|
|
|
|
|
|
COPY configs configs |
|
|
|
|
|
|
|
|
|
COPY requirements.txt requirements.txt |
|
|
|
|
|
|
|
|
|
RUN python3 -m pip install -r requirements.txt && rm requirements.txt |
|
|
|
|
|
|
|
|
|
RUN chmod +x $GOPATH/src/github.com/harmony-one/harmony-tests/localnet/scripts/run.sh |
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/go/src/github.com/harmony-one/harmony-tests/localnet/scripts/run.sh"] |