-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add OP Plasma to devnet * Update CCI config * Re-add plasma ope2e * Add da-server to docker build * Fixes * Add tickets to TODOs * Update after merge
- Loading branch information
1 parent
4a157b4
commit f32d197
Showing
9 changed files
with
103 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,9 @@ | ||
FROM --platform=$BUILDPLATFORM golang:1.21.3-alpine3.18 as builder | ||
|
||
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash | ||
|
||
# We copy the go.mod/sum first, so the `go mod download` does not have to re-run if dependencies do not change. | ||
COPY ./go.mod /app/go.mod | ||
COPY ./go.sum /app/go.sum | ||
|
||
WORKDIR /app | ||
|
||
RUN echo "go mod cache: $(go env GOMODCACHE)" | ||
RUN echo "go build cache: $(go env GOCACHE)" | ||
|
||
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build go mod download | ||
|
||
# NOTE: the Dockerfile.dockerignore file effectively describes all dependencies | ||
COPY . /app | ||
|
||
ARG GIT_COMMIT | ||
ARG GIT_DATE | ||
|
||
ARG DASERVER_VERSION=v0.0.0 | ||
|
||
ARG TARGETOS TARGETARCH | ||
|
||
RUN --mount=type=cache,target=/root/.cache/go-build cd op-plasma && make da-server \ | ||
GOOS=$TARGETOS GOARCH=$TARGETARCH GITCOMMIT=$GIT_COMMIT GITDATE=$GIT_DATE VERSION="$DASERVER_VERSION" | ||
ARG OP_STACK_GO_BUILDER=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-stack-go:latest | ||
FROM $OP_STACK_GO_BUILDER as builder | ||
# See "make golang-docker" and /ops/docker/op-stack-go | ||
|
||
FROM alpine:3.18 | ||
|
||
COPY --from=builder /app/op-plasma/bin/da-server /usr/local/bin/ | ||
COPY --from=builder /usr/local/bin/da-server /usr/local/bin/da-server | ||
|
||
CMD ["da-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters