diff --git a/README.md b/README.md index 08149c688b..ab14e6de2e 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,10 @@ This command runs a Docker container named `scroll_test_container` from the `scr Once the Docker container is running, execute the tests using the following commands: ```bash -go test -v -race -covermode=atomic -p 1 scroll-tech/rollup/... -go test -tags="mock_verifier" -v -race -covermode=atomic -p 1 scroll-tech/coordinator/... -go test -v -race -covermode=atomic -p 1 scroll-tech/database/... -go test -v -race -covermode=atomic -p 1 scroll-tech/common/... +go test -v -race -covermode=atomic scroll-tech/rollup/... +go test -tags="mock_verifier" -v -race -covermode=atomic scroll-tech/coordinator/... +go test -v -race -covermode=atomic scroll-tech/database/... +go test -v -race -covermode=atomic scroll-tech/common/... ``` ## Testing Contracts diff --git a/build/dockerfiles/local_testing.Dockerfile b/build/dockerfiles/local_testing.Dockerfile index d25a9f96d9..f6702e8724 100644 --- a/build/dockerfiles/local_testing.Dockerfile +++ b/build/dockerfiles/local_testing.Dockerfile @@ -1,25 +1,11 @@ -FROM ubuntu:23.10 +# Start from the latest golang base image +FROM golang:1.21 -RUN apt-get update && apt-get install -y \ - docker.io \ - docker-compose \ - libzstd-dev \ - wget \ - git \ - build-essential - -ENV GO_VERSION 1.20.1 - -RUN wget https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz -O go.tar.gz \ - && tar -C /usr/local -xzf go.tar.gz \ - && rm go.tar.gz - -ENV PATH="/usr/local/go/bin:${PATH}" -ENV GOPATH="/go" -ENV PATH="$GOPATH/bin:${PATH}" -ENV CGO_ENABLED=1 -RUN gcc --version && g++ --version +# Install Docker +RUN apt-get update && apt-get install -y docker.io docker-compose +# Set the working directory WORKDIR /go/src/app -ENTRYPOINT ["/bin/bash"] +# This container will be executable +ENTRYPOINT [ "/bin/bash" ]