Skip to content
Open
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
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
22 changes: 22 additions & 0 deletions Test.Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]