- See Go's Download and install
Since the Senzing library is a prerequisite, it must be installed first.
-
Verify Senzing C shared objects, configuration, and SDK header files are installed.
/opt/senzing/g2/lib
/opt/senzing/g2/sdk/c
/etc/opt/senzing
-
If not installed, see How to Install Senzing for Go Development.
-
Identify git repository.
export GIT_ACCOUNT=senzing export GIT_REPOSITORY=go-grpcing export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
-
Using the environment variables values just set, follow steps in clone-repository to install the Git repository.
-
Build the binaries. Example:
cd ${GIT_REPOSITORY_DIR} make build
-
The binaries will be found in ${GIT_REPOSITORY_DIR}/target. Example:
tree ${GIT_REPOSITORY_DIR}/target
-
Run the binary. Example:
${GIT_REPOSITORY_DIR}/target/linux/go-grpcing
-
Clean up. Example:
cd ${GIT_REPOSITORY_DIR} make clean
-
Run Go tests. Example:
cd ${GIT_REPOSITORY_DIR} make test
-
Start
godoc
documentation server. Example:cd ${GIT_REPOSITORY_DIR} godoc
-
Visit localhost:6060
-
Senzing documentation will be in the "Third party" section.
github.com
>senzing
>go-grpcing
-
When a versioned release is published with a
v0.0.0
format tag, the reference can be found by clicking on the following badge at the top of the README.md page:
-
Use make target to run a docker images that builds RPM and DEB files. Example:
cd ${GIT_REPOSITORY_DIR} make docker-build
-
Run docker container. Example:
docker run \ --rm \ senzing/go-grpcing
-
Use make target to run a docker images that builds RPM and DEB files. Example:
cd ${GIT_REPOSITORY_DIR} make package
-
The results will be in the
${GIT_REPOSITORY_DIR}/target
directory. Example:tree ${GIT_REPOSITORY_DIR}/target
-
Determine if
go-grpcing
is installed. Example:apt list --installed | grep go-grpcing
-
✏️ Install
go-grpcing
. Example:cd ${GIT_REPOSITORY_DIR}/target sudo apt install ./go-grpcing-0.0.0.deb
-
Run command. Example:
go-grpcing
-
Remove
go-grpcing
from system. Example:sudo apt-get remove go-grpcing