-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Docker support, doc updates, & regression fixes
- Loading branch information
1 parent
3fb8d8e
commit 02fa3d8
Showing
6 changed files
with
52 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,6 @@ jobs: | |
- name: Run Unit Tests | ||
id: unit | ||
run: | | ||
make submodules && | ||
make srs && | ||
make test | ||
gosec: | ||
|
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,9 +1,32 @@ | ||
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 | ||
# multi container builds ftw | ||
|
||
FROM alpine:3.18 | ||
FROM golang:1.21.10-alpine3.19 as builder | ||
|
||
COPY --from=builder /usr/local/bin/da-server /usr/local/bin/da-server | ||
RUN apk add --no-cache make gcc musl-dev linux-headers jq bash git | ||
|
||
CMD ["da-server"] | ||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy go.mod and go.sum files | ||
COPY go.mod go.sum ./ | ||
|
||
# Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed | ||
RUN go mod download | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Build the application binary | ||
RUN make da-server | ||
|
||
# Use alpine to run app | ||
FROM alpine:3.16 | ||
|
||
WORKDIR /app | ||
COPY --from=builder /app/bin/da-server . | ||
|
||
# API & metrics servers | ||
EXPOSE 4242 7300 | ||
|
||
# Run app | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
* | ||
|
||
!/op-bindings | ||
!/op-service | ||
!/op-plasma | ||
!/go.mod | ||
!/go.sum |
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