Skip to content

Commit

Permalink
revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Apr 22, 2024
1 parent 08498a8 commit c170767
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 7 additions & 21 deletions build/dockerfiles/local_testing.Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit c170767

Please sign in to comment.