Commit 2480cf85 authored by Mark Tyneway's avatar Mark Tyneway

op-chain-ops: migrate binary

Adds a `migrate` binary as well as a dockerfile for
building it. This `Dockerfile` should be accessed from
the root of the repository, similar to the other docker
files for the other bedrock packages.
parent 87aa40da
FROM golang:1.18.0-alpine3.15 as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash
COPY ./op-chain-ops/docker.go.work /app/go.work
COPY ./op-chain-ops /app/op-chain-ops
COPY ./op-bindings /app/op-bindings
WORKDIR /app/op-chain-ops
RUN make migrate
FROM alpine:3.15
COPY --from=builder /app/op-chain-ops/bin/migrate /usr/local/bin
ENTRYPOINT ["migrate"]
surgery: migrate:
go build -o ./surgery ./cmd/surgery/main.go go build -o ./bin/migrate ./cmd/migrate/main.go
test: test:
go test ./... go test ./...
.PHONY: surgery test .PHONY: migrate test
go 1.18
use (
./op-bindings
./op-chain-ops
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment