Skip to content

Commit

Permalink
API refactoring + missing features (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Modship <[email protected]>
Co-authored-by: sydhds <[email protected]>
  • Loading branch information
3 people authored Jul 26, 2023
1 parent a20f10a commit 8b938e2
Show file tree
Hide file tree
Showing 27 changed files with 8,697 additions and 3,253 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM alpine:latest

ENV BUF_VERSION=1.22.0
ENV PROTOC_GEN_DOC_VERSION=1.5.1

RUN apk update && apk upgrade
RUN apk --no-cache --update add bash protoc curl protobuf-dev && rm -rf /var/cache/apk/*

WORKDIR /tmp

# install buf
RUN curl -sSL \
"https://github.com/bufbuild/buf/releases/download/v$BUF_VERSION/buf-$(uname -s)-$(uname -m)" \
-o "/usr/bin/buf" && \
chmod +x "/usr/bin/buf" && rm -rf ./*

# install protoc-gen-doc
RUN curl -sSL \
"https://github.com/pseudomuto/protoc-gen-doc/releases/download/v$PROTOC_GEN_DOC_VERSION/protoc-gen-doc_${PROTOC_GEN_DOC_VERSION}_linux_amd64.tar.gz" --output protoc-gen-doc.tar.gz && \
tar -xf ./protoc-gen-doc.tar.gz && cp ./protoc-gen-doc /usr/bin/ && rm -rf ./*


WORKDIR /opt
CMD ["bash", "build.sh"]
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

# Massa proto

This repository contains Protobuf Protobuf files for Massa blockchain.
This repository contains Protobuf files for Massa blockchain.

Using Docker
------------
Build image
```bash
docker build -t massaprotobuild:latest .
```
Run image
```bash
docker run --rm --name protobuild -v ./:/opt massaprotobuild
```

OR

Requirements
------------
Expand Down
Loading

0 comments on commit 8b938e2

Please sign in to comment.