Skip to content

Commit

Permalink
Finishing the forking
Browse files Browse the repository at this point in the history
  • Loading branch information
pmerrison committed Jun 1, 2023
1 parent 221cc0f commit a2f8cce
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 1,338 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ MAINTAINER FullStory Engineering
# create non-privileged group and user
RUN addgroup -S grpcurl && adduser -S grpcurl -G grpcurl

WORKDIR /tmp/fullstorydev/grpcurl
WORKDIR /tmp/tetrateio/grpcurl
# copy just the files/sources we need to build grpcurl
COPY VERSION *.go go.* /tmp/fullstorydev/grpcurl/
COPY cmd /tmp/fullstorydev/grpcurl/cmd
COPY VERSION *.go go.* /tmp/tetrateio/grpcurl/
COPY cmd /tmp/tetrateio/grpcurl/cmd
# and build a completely static binary (so we can use
# scratch as basis for the final image)
ENV CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ release:
.PHONY: docker
docker:
@echo $(dev_build_version) > VERSION
docker build -t fullstorydev/grpcurl:$(dev_build_version) .
docker build -t tetrateio/grpcurl:$(dev_build_version) .
@rm VERSION

.PHONY: generate
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gRPCurl
[![Build Status](https://circleci.com/gh/fullstorydev/grpcurl/tree/master.svg?style=svg)](https://circleci.com/gh/fullstorydev/grpcurl/tree/master)
[![Go Report Card](https://goreportcard.com/badge/github.com/fullstorydev/grpcurl)](https://goreportcard.com/report/github.com/fullstorydev/grpcurl)
[![Build Status](https://circleci.com/gh/tetrateio/grpcurl/tree/master.svg?style=svg)](https://circleci.com/gh/tetrateio/grpcurl/tree/master)
[![Go Report Card](https://goreportcard.com/badge/github.com/tetrateio/grpcurl)](https://goreportcard.com/report/github.com/tetrateio/grpcurl)

`grpcurl` is a command-line tool that lets you interact with gRPC servers. It's
basically `curl` for gRPC servers.
Expand All @@ -22,7 +22,7 @@ is using that very same schema. So, if the server you interact with does not sup
reflection, you will either need the proto source files that define the service or need
protoset files that `grpcurl` can use.

This repo also provides a library package, `github.com/fullstorydev/grpcurl`, that has
This repo also provides a library package, `github.com/tetrateio/grpcurl`, that has
functions for simplifying the construction of other command-line tools that dynamically
invoke gRPC endpoints. This code is a great example of how to use the various packages of
the [protoreflect](https://godoc.org/github.com/jhump/protoreflect) library, and shows
Expand All @@ -47,7 +47,7 @@ files (containing compiled descriptors, produced by `protoc`) to `grpcurl`.

### Binaries

Download the binary from the [releases](https://github.com/fullstorydev/grpcurl/releases) page.
Download the binary from the [releases](https://github.com/tetrateio/grpcurl/releases) page.

### Homebrew (macOS)

Expand All @@ -61,9 +61,9 @@ brew install grpcurl
For platforms that support Docker, you can download an image that lets you run `grpcurl`:
```shell
# Download image
docker pull fullstorydev/grpcurl:latest
docker pull tetrateio/grpcurl:latest
# Run the tool
docker run fullstorydev/grpcurl api.grpc.me:443 list
docker run tetrateio/grpcurl api.grpc.me:443 list
```
Note that there are some pitfalls when using docker:
- If you need to interact with a server listening on the host's loopback network, you must specify the host as `host.docker.internal` instead of `localhost` (for Mac or Windows) _OR_ have the container use the host network with `-network="host"` (Linux only).
Expand All @@ -83,7 +83,7 @@ https://repology.org/project/grpcurl/information
If you already have the [Go SDK](https://golang.org/doc/install) installed, you can use the `go`
tool to install `grpcurl`:
```shell
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
go install github.com/tetrateio/grpcurl/cmd/grpcurl@latest
```

This installs the command into the `bin` sub-folder of wherever your `$GOPATH`
Expand Down
2 changes: 1 addition & 1 deletion cmd/grpcurl/grpcurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
// Register xds so xds and xds-experimental resolver schemes work
_ "google.golang.org/grpc/xds"

"github.com/fullstorydev/grpcurl"
"github.com/tetrateio/grpcurl"
)

// To avoid confusion between program error codes and the gRPC resonse
Expand Down
21 changes: 19 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
module github.com/fullstorydev/grpcurl
module github.com/tetrateio/grpcurl

go 1.15
go 1.19

require (
github.com/golang/protobuf v1.5.3
github.com/jhump/protoreflect v1.14.1
google.golang.org/grpc v1.55.0
google.golang.org/protobuf v1.30.0
)

require (
cloud.google.com/go/compute v1.18.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe // indirect
github.com/cncf/xds/go v0.0.0-20230310173818-32f1caf87195 // indirect
github.com/envoyproxy/go-control-plane v0.11.0 // indirect
github.com/envoyproxy/protoc-gen-validate v0.10.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/oauth2 v0.6.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
)
Loading

0 comments on commit a2f8cce

Please sign in to comment.