Application(image) for packing proto files into Java library and distributing to Nexus repository.
docker build -t protobuf-generator .
docker run --rm \
-v /some/path/to/proto:/app/proto \
-e SERVER_URL=http://nexus:8081 \
-e USERNAME=admin \
-e PASSWORD=admin123 \
-e GROUP_ID=com.egt \
-e ARTIFACT_ID=some-lib \
-e VERSION=0.0.2 \
protobuf-generator
To play with this you could run the Nexus Docker Image and start it locally.
Makefile has two options:
build
- will just build the lib by *.proto and store it by the mounted path/some/path/to/proto/build/java/
deploy
- store a built lib to the Nexus Repository
To use the options you should just add make build
or make deploy
in the end of the command line:
docker run --rm \
...
protobuf-generator make build
or
docker run --rm \
...
protobuf-generator make deploy