Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help migrating from Protobuf Docker container #16

Closed
marcellodesales opened this issue Jan 10, 2020 · 3 comments
Closed

Help migrating from Protobuf Docker container #16

marcellodesales opened this issue Jan 10, 2020 · 3 comments

Comments

@marcellodesales
Copy link

marcellodesales commented Jan 10, 2020

I was so happy to see a lengthy documentation on protobuf... So I thought "cool, I will finally replace prototool"... Got a glass of wine and tried the following... But, the basic "image" generation didn't work following the docs...

$ tree -L 1
.
├── README.md
├── buf.yaml
├── proto_modules
├── prototool.yaml
└── src

4 directories, 4 files

$ tree src/main/proto
src/main/proto
├── common
│   └── globalId.proto
├── course.proto
├── service.proto
└── student.proto

1 directory, 4 files

$ cat buf.yaml
build:
  roots:
    - src/main/proto
    - proto_modules/google-commons
    - proto_modules/protocol-buffers/src

$ docker run -ti -v $(pwd)/work -w /work bufbuild/buf ls-files
no input files found that match roots

What's next? I have protos under the proto_modules dir and src...

docker images | grep buf
bufbuild/buf                                                                            
latest              017f494f9c89 
       3 days ago          42.8MB
@bufdev
Copy link
Member

bufdev commented Jan 10, 2020

You have a typo in your -v volume declaration: it should be $(pwd):/work.

@bufdev
Copy link
Member

bufdev commented Jan 10, 2020

I'm going to close this as this is user input error. If you have a further problem, or the above was just a typo within this GitHub Issue, please re-open if you are unable to find the underlying cause.

@bufdev bufdev closed this as completed Jan 10, 2020
@marcellodesales
Copy link
Author

marcellodesales commented Jan 10, 2020

@bufdev :) the wine man

$ docker run -v $(pwd):/work -w /work bufbuild/buf ls-files
proto_modules/google-commons/google/api/annotations.proto
proto_modules/google-commons/google/api/http.proto
proto_modules/protocol-buffers/src/google/protobuf/descriptor.proto
proto_modules/protocol-buffers/src/google/protobuf/empty.proto
src/main/proto/common/globalId.proto
src/main/proto/course.proto
src/main/proto/service.proto
src/main/proto/student.proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants