-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Senzing/3-dockter-1
3 dockter 1
- Loading branch information
Showing
16 changed files
with
336 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Based on | ||
# - https://github.com/securego/gosec | ||
|
||
name: go-security.yaml | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
- name: Run Gosec Security Scanner | ||
uses: securego/gosec@master | ||
with: | ||
args: ./... |
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ | |
|
||
# Go workspace file | ||
go.work | ||
.history |
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 |
---|---|---|
@@ -1 +1,102 @@ | ||
# observe | ||
# observe | ||
|
||
## :warning: WARNING: observe is still in development :warning: _ | ||
|
||
At the moment, this is "work-in-progress" with Semantic Versions of `0.n.x`. | ||
Although it can be reviewed and commented on, | ||
the recommendation is not to use it yet. | ||
|
||
## Synopsis | ||
|
||
`observe` is a command in the | ||
[senzing-tools](https://github.com/Senzing/senzing-tools) | ||
suite of tools. | ||
This command receives | ||
[Observer](https://github.com/Senzing/go-observing) | ||
messages over gRPC. | ||
|
||
[![Go Reference](https://pkg.go.dev/badge/github.com/senzing/observe.svg)](https://pkg.go.dev/github.com/senzing/observe) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/senzing/observe)](https://goreportcard.com/report/github.com/senzing/observe) | ||
[![go-test.yaml](https://github.com/Senzing/observe/actions/workflows/go-test.yaml/badge.svg)](https://github.com/Senzing/observe/actions/workflows/go-test.yaml) | ||
[![License](https://img.shields.io/badge/License-Apache2-brightgreen.svg)](https://github.com/Senzing/observe/blob/main/LICENSE) | ||
|
||
## Overview | ||
|
||
`observe` performs the following: | ||
|
||
## Install | ||
|
||
1. The `observe` command is installed with the | ||
[senzing-tools](https://github.com/Senzing/senzing-tools) | ||
suite of tools. | ||
See senzing-tools [install](https://github.com/Senzing/senzing-tools#install). | ||
|
||
## Use | ||
|
||
```console | ||
export LD_LIBRARY_PATH=/opt/senzing/g2/lib/ | ||
senzing-tools observe [flags] | ||
``` | ||
|
||
1. For options and flags: | ||
1. [Online documentation](https://hub.senzing.com/senzing-tools/senzing-tools_observe.html) | ||
1. Runtime documentation: | ||
|
||
```console | ||
export LD_LIBRARY_PATH=/opt/senzing/g2/lib/ | ||
senzing-tools observe --help | ||
``` | ||
|
||
1. In addition to the following simple usage examples, there are additional [Examples](docs/examples.md). | ||
|
||
### Using command line options | ||
|
||
1. :pencil2: Specify database using command line option. | ||
Example: | ||
|
||
```console | ||
export LD_LIBRARY_PATH=/opt/senzing/g2/lib/ | ||
senzing-tools observe | ||
``` | ||
|
||
1. See [Parameters](#parameters) for additional parameters. | ||
|
||
### Using environment variables | ||
|
||
1. :pencil2: Specify database using environment variable. | ||
Example: | ||
|
||
```console | ||
export SENZING_TOOLS_DATABASE_URL=postgresql://username:password@postgres.example.com:5432/G2 | ||
export LD_LIBRARY_PATH=/opt/senzing/g2/lib/ | ||
senzing-tools observe | ||
``` | ||
|
||
1. See [Parameters](#parameters) for additional parameters. | ||
|
||
### Using Docker | ||
|
||
This usage shows how to initialze a database with a Docker container. | ||
|
||
1. :pencil2: Run `senzing/senzing-tools`. | ||
Example: | ||
|
||
```console | ||
docker run \ | ||
--env SENZING_TOOLS_DATABASE_URL=postgresql://username:password@postgres.example.com:5432/G2 \ | ||
--rm \ | ||
senzing/senzing-tools observe | ||
``` | ||
|
||
1. See [Parameters](#parameters) for additional parameters. | ||
|
||
### Parameters | ||
|
||
- **[SENZING_TOOLS_LOG_LEVEL](https://github.com/Senzing/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_log_level)** | ||
|
||
## References | ||
|
||
- [Command reference](https://hub.senzing.com/senzing-tools/senzing-tools_observe.html) | ||
- [Development](docs/development.md) | ||
- [Errors](docs/errors.md) | ||
- [Examples](docs/examples.md) |
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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
// 0.2.1 | ||
// 0.1.0 | ||
// Created by make-go-github-file.yaml on Fri Mar 31 21:16:54 UTC 2023 | ||
package cmd | ||
|
||
var githubDate string = "2023-03-31" | ||
var githubIteration string = "0" | ||
var githubRef string = "refs/tags/0.2.1" | ||
var githubRefName string = "0.2.1" | ||
var githubRepository string = "Senzing/observe" | ||
var githubRepositoryName string = "observe" | ||
var githubVersion string = "0.2.1" | ||
|
||
var githubDate string = "2023-05-12" | ||
var githubIteration string = "0" | ||
var githubRef string = "refs/tags/0.1.0" | ||
var githubRefName string = "0.1.0" | ||
var githubRepository string = "Senzing/observe" | ||
var githubRepositoryName string = "observe" | ||
var githubVersion string = "0.1.0" |
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
Oops, something went wrong.