Skip to content

Commit

Permalink
fix: add build setup for validator script
Browse files Browse the repository at this point in the history
  • Loading branch information
JeancarloBarrios committed Oct 16, 2023
1 parent 0b34683 commit 7738058
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ whitespace += $(whitespace)
comma := ,
build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=umee \
-X github.com/cosmos/cosmos-sdk/version.AppName=umeed \
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=seda-chain \
-X github.com/cosmos/cosmos-sdk/version.AppName=seda-chaind \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
Expand Down
5 changes: 5 additions & 0 deletions dockers/goreleaser.Dockefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM scratch
ENTRYPOINT ["/sedad"]
COPY sedad /


35 changes: 35 additions & 0 deletions dockers/sedad.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM golang:1.21-bookworm AS builder

WORKDIR /src/
COPY go.mod ./
RUN go mod download

COPY . .


RUN make install


FROM ubuntu:23.04
EXPOSE 26656 26657 1317 9090
CMD ["seda-chaind"]
STOPSIGNAL SIGTERM


RUN apt-get update && apt-get install ca-certificates -y \
&& groupadd seda && useradd -g seda -m seda



COPY --from=builder /go/bin/seda-chaind /usr/local/bin/
COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm\@v*/internal/api/libwasmvm.*.so /usr/lib/


FROM ubuntu:23.04
EXPOSE 26656 26657 1317 9090

COPY --from=builder /go/bin/seda-chaind /usr/local/bin/

RUN seda-chaind create validator


0 comments on commit 7738058

Please sign in to comment.