mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-20 15:15:18 +00:00
a0659fec83
* add version label and trim repo url * add README for protobufs * add version to NodeInfoResponse * add docker login task * remove version from docker compose file * return version with GetNodeInfo response * add basic -node-info flag * print max frame as well with -node-info * expand protobuf README * update node command examples to use node binary and make log commands follow * return all of NodeInfo * extract FormatVersion * print version of running process
41 lines
1.1 KiB
Docker
41 lines
1.1 KiB
Docker
FROM golang:1.20.14-alpine3.19 as build
|
|
|
|
ENV GOEXPERIMENT=arenas
|
|
|
|
WORKDIR /opt/ceremonyclient
|
|
|
|
COPY . .
|
|
|
|
WORKDIR /opt/ceremonyclient/node
|
|
|
|
RUN go install ./...
|
|
RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
|
|
|
|
FROM alpine:3.19
|
|
|
|
ARG NODE_VERSION
|
|
ARG GIT_REPO
|
|
ARG GIT_BRANCH
|
|
ARG GIT_COMMIT
|
|
|
|
ENV GOEXPERIMENT=arenas
|
|
|
|
LABEL org.opencontainers.image.title="Quilibrium Network Node"
|
|
LABEL org.opencontainers.image.description="Quilibrium is a decentralized alternative to platform as a service providers."
|
|
LABEL org.opencontainers.image.version=$NODE_VERSION
|
|
LABEL org.opencontainers.image.vendor=Quilibrium
|
|
LABEL org.opencontainers.image.url=https://quilibrium.com/
|
|
LABEL org.opencontainers.image.documentation=https://quilibrium.com/docs
|
|
LABEL org.opencontainers.image.source=$GIT_REPO
|
|
LABEL org.opencontainers.image.ref.name=$GIT_BRANCH
|
|
LABEL org.opencontainers.image.revision=$GIT_COMMIT
|
|
|
|
COPY --from=build /go/bin/node /usr/local/bin
|
|
COPY --from=build /go/bin/grpcurl /usr/local/bin
|
|
COPY --from=build /opt/ceremonyclient/node/ceremony.json /root
|
|
COPY --from=build /opt/ceremonyclient/node/retroactive_peers.json /root
|
|
|
|
WORKDIR /root
|
|
|
|
ENTRYPOINT ["node"]
|