-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker container for generate protoc, mock, goyacc and regel
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 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
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM spqr-base-image | ||
|
||
RUN apt-get update && apt-get install -y ragel && apt-get install -y protobuf-compiler | ||
RUN cd $HOME | ||
RUN wget https://go.dev/dl/go1.21.6.linux-amd64.tar.gz | ||
RUN tar -xvf go1.21.6.linux-amd64.tar.gz | ||
RUN export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | ||
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
RUN go install google.golang.org/grpc/cmd/[email protected] | ||
RUN go install github.com/golang/mock/[email protected] | ||
RUN go install golang.org/x/tools/cmd/[email protected] | ||
|
||
ENTRYPOINT cd /spqr && make && make gen |