diff --git a/Makefile b/Makefile index e9df64cf00..8eb6235869 100644 --- a/Makefile +++ b/Makefile @@ -257,3 +257,6 @@ debug-delete-log: @echo "[WARN] - it needs sudo to remove folder created with loki docker image user" sudo rm -rf test/logs_aggregator/loki + +docker-go-test: + docker run --rm -it -v "$PWD":/go/src/github.com/harmony-one/harmony frozen621/harmony-test bash -c 'make go-test' \ No newline at end of file diff --git a/Test.Dockerfile b/Test.Dockerfile new file mode 100644 index 0000000000..ad0a974f3b --- /dev/null +++ b/Test.Dockerfile @@ -0,0 +1,22 @@ +FROM golang:1.24 + +ARG ENV=dev + +RUN apt-get update && \ + apt-get install -y build-essential make git curl libgmp-dev libssl-dev gcc g++ && \ + rm -rf /var/lib/apt/lists/* + +WORKDIR /go/src/github.com/harmony-one + +RUN git clone https://github.com/harmony-one/mcl.git && \ + git clone https://github.com/harmony-one/bls.git + +RUN echo "Cloning branch: ${ENV}" && \ + git clone -b ${ENV} https://github.com/harmony-one/harmony.git && \ + cd harmony && \ + go mod tidy && \ + make deps + +WORKDIR /go/src/github.com/harmony-one/harmony + +CMD ["make", "go-test"] \ No newline at end of file