-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the Dockerfile for API documentation generation (#1822)
* fix the Dockerfile for API documentation generation * regenerate API documentation
- Loading branch information
Showing
2 changed files
with
163 additions
and
165 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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
FROM pseudomuto/protoc-gen-doc | ||
RUN apt-get -q -y update && apt-get -q -y install curl && \ | ||
mkdir -p /protobuf/google/protobuf && \ | ||
for f in any duration descriptor empty struct timestamp wrappers; do \ | ||
curl -L -o /protobuf/google/protobuf/${f}.proto https://raw.githubusercontent.com/google/protobuf/master/src/google/protobuf/${f}.proto; \ | ||
done && \ | ||
mkdir -p /protobuf/google/api && \ | ||
for f in annotations http; do \ | ||
curl -L -o /protobuf/google/api/${f}.proto https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/third_party/googleapis/google/api/${f}.proto; \ | ||
done && \ | ||
mkdir -p /protobuf/github.com/gogo/protobuf/gogoproto && \ | ||
curl -L -o /protobuf/github.com/gogo/protobuf/gogoproto/gogo.proto https://raw.githubusercontent.com/gogo/protobuf/master/gogoproto/gogo.proto && \ | ||
mkdir -p /protobuf/github.com/mwitkow/go-proto-validators && \ | ||
curl -L -o /protobuf/github.com/mwitkow/go-proto-validators/validator.proto https://raw.githubusercontent.com/mwitkow/go-proto-validators/master/validator.proto && \ | ||
apt-get remove --purge -y curl && \ | ||
apt-get -y autoremove && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN apk add --no-cache curl && \ | ||
mkdir -p /protobuf/google/protobuf && \ | ||
for f in any duration descriptor empty struct timestamp wrappers; do \ | ||
curl -L -o /protobuf/google/protobuf/${f}.proto https://raw.githubusercontent.com/google/protobuf/master/src/google/protobuf/${f}.proto; \ | ||
done && \ | ||
mkdir -p /protobuf/google/api && \ | ||
for f in annotations http; do \ | ||
curl -L -o /protobuf/google/api/${f}.proto https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/third_party/googleapis/google/api/${f}.proto; \ | ||
done && \ | ||
mkdir -p /protobuf/github.com/gogo/protobuf/gogoproto && \ | ||
curl -L -o /protobuf/github.com/gogo/protobuf/gogoproto/gogo.proto https://raw.githubusercontent.com/gogo/protobuf/master/gogoproto/gogo.proto && \ | ||
mkdir -p /protobuf/github.com/mwitkow/go-proto-validators && \ | ||
curl -L -o /protobuf/github.com/mwitkow/go-proto-validators/validator.proto https://raw.githubusercontent.com/mwitkow/go-proto-validators/master/validator.proto && \ | ||
apk del --purge curl |
Oops, something went wrong.