Skip to content

Commit

Permalink
#118 Normalize to template
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Aug 28, 2024
1 parent 80630ea commit 3a35942
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: mkdir -p /tmp/sqlite && cp testdata/sqlite/G2C.db /tmp/sqlite/

- name: Run go test
run: go test -exec /Users/runner/work/template-go/template-go/bin/macos_exec_dyld.sh -json -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
run: go test -exec /Users/runner/work/serve-http/serve-http/bin/macos_exec_dyld.sh -json -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./... 2>&1 | tee /tmp/gotest.log | gotestfmt

- name: Store coverage file
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ RUN make build
# Copy binaries to /output.

RUN mkdir -p /output \
&& cp -R ${GOPATH}/src/serve-http/target/* /output/
&& cp -R ${GOPATH}/src/serve-http/target/* /output/

# -----------------------------------------------------------------------------
# Stage: final
# -----------------------------------------------------------------------------

FROM ${IMAGE_FINAL} AS final
ENV REFRESHED_AT=2024-07-01
LABEL Name="senzing/template-go" \
LABEL Name="senzing/serve-http" \
Maintainer="support@senzing.com" \
Version="0.0.1"
HEALTHCHECK CMD apt list --installed | grep senzingapi-runtime
Expand Down
71 changes: 36 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,42 +148,43 @@ This usage shows how to initialze a database with a Docker container.
1. [Errors]
1. [Examples]

[Command reference]: https://hub.senzing.com/senzing-tools/senzing-tools_serve-http.html
[Development]: docs/development.md
[Errors]: docs/errors.md
[Examples]: docs/examples.md
[Go Reference Badge]: https://pkg.go.dev/badge/github.com/senzing-garage/template-go.svg
[Go Report Card Badge]: https://goreportcard.com/badge/github.com/senzing-garage/template-go
[Go Report Card]: https://goreportcard.com/report/github.com/senzing-garage/template-go
[License Badge]: https://img.shields.io/badge/License-Apache2-brightgreen.svg
[License]: https://github.com/senzing-garage/template-go/blob/main/LICENSE
[Online documentation]: https://hub.senzing.com/senzing-tools/senzing-tools_serve-http.html
[Package reference]: https://pkg.go.dev/github.com/senzing-garage/template-go
[Go Reference Badge]: <https://pkg.go.dev/badge/github.com/senzing-garage/serve-http.svg>
[Go Report Card Badge]: <https://goreportcard.com/badge/github.com/senzing-garage/serve-http>
[Go Report Card]: <https://goreportcard.com/report/github.com/senzing-garage/serve-http>
[License Badge]: <https://img.shields.io/badge/License-Apache2-brightgreen.svg>
[License]: <https://github.com/senzing-garage/serve-http/blob/main/LICENSE>
[Online documentation]: <https://hub.senzing.com/senzing-tools/senzing-tools_serve-http.html>
[Package reference]: <https://pkg.go.dev/github.com/senzing-garage/serve-http>
[Parameters]: #parameters
[SENZING_TOOLS_DATABASE_URL]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_database_url
[SENZING_TOOLS_ENABLE_ALL]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_all
[SENZING_TOOLS_ENABLE_SZCONFIGMGR]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szconfigmgr
[SENZING_TOOLS_ENABLE_SZCONFIG]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szconfig
[SENZING_TOOLS_ENABLE_SZDIAGNOSTIC]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szdiagnostic
[SENZING_TOOLS_ENABLE_SZENGINE]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szengine
[SENZING_TOOLS_ENABLE_SzPRODUCT]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szproduct
[SENZING_TOOLS_ENGINE_CONFIGURATION_JSON]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_engine_configuration_json
[SENZING_TOOLS_ENGINE_LOG_LEVEL]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_engine_log_level
[SENZING_TOOLS_ENGINE_MODULE_NAME]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_engine_module_name
[SENZING_TOOLS_GRPC_PORT]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_grpc_port
[SENZING_TOOLS_LOG_LEVEL]: https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_log_level
[Senzing Garage]: https://github.com/senzing-garage
[Senzing Quick Start guides]: https://docs.senzing.com/quickstart/
[Senzing]: https://senzing.com/
[sz-sdk-go-grpc]: https://github.com/senzing/sz-sdk-go-grpc
[sz-sdk-python-grpc]: https://github.com/senzing-garage/sz-sdk-python-grpc
[go-test-darwin.yaml Badge]: https://github.com/senzing-garage/template-go/actions/workflows/go-test-darwin.yaml/badge.svg
[go-test-darwin.yaml]: https://github.com/senzing-garage/template-go/actions/workflows/go-test-darwin.yaml
[go-test-linux.yaml Badge]: https://github.com/senzing-garage/template-go/actions/workflows/go-test-linux.yaml/badge.svg
[go-test-linux.yaml]: https://github.com/senzing-garage/template-go/actions/workflows/go-test-linux.yaml
[go-test-windows.yaml Badge]: https://github.com/senzing-garage/template-go/actions/workflows/go-test-windows.yaml/badge.svg
[go-test-windows.yaml]: https://github.com/senzing-garage/template-go/actions/workflows/go-test-windows.yaml
[golangci-lint.yaml Badge]: https://github.com/senzing-garage/template-go/actions/workflows/golangci-lint.yaml/badge.svg
[golangci-lint.yaml]: https://github.com/senzing-garage/template-go/actions/workflows/golangci-lint.yaml
[install]: https://github.com/senzing-garage/senzing-tools#install
[localhost:8261]: http://localhost:8261
[senzing-tools]: https://github.com/senzing-garage/senzing-tools
[SENZING_TOOLS_DATABASE_URL]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_database_url>
[SENZING_TOOLS_ENABLE_ALL]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_all>
[SENZING_TOOLS_ENABLE_SZCONFIGMGR]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szconfigmgr>
[SENZING_TOOLS_ENABLE_SZCONFIG]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szconfig>
[SENZING_TOOLS_ENABLE_SZDIAGNOSTIC]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szdiagnostic>
[SENZING_TOOLS_ENABLE_SZENGINE]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szengine>
[SENZING_TOOLS_ENABLE_SzPRODUCT]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_enable_szproduct>
[SENZING_TOOLS_ENGINE_CONFIGURATION_JSON]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_engine_configuration_json>
[SENZING_TOOLS_ENGINE_LOG_LEVEL]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_engine_log_level>
[SENZING_TOOLS_ENGINE_MODULE_NAME]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_engine_module_name>
[SENZING_TOOLS_GRPC_PORT]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_grpc_port>
[SENZING_TOOLS_LOG_LEVEL]: <https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_tools_log_level>
[Senzing Garage]: <https://github.com/senzing-garage>
[Senzing Quick Start guides]: <https://docs.senzing.com/quickstart/>
[Senzing]: <https://senzing.com/>
[sz-sdk-go-grpc]: <https://github.com/senzing/sz-sdk-go-grpc>
[sz-sdk-python-grpc]: <https://github.com/senzing-garage/sz-sdk-python-grpc>
[go-test-darwin.yaml Badge]: <https://github.com/senzing-garage/serve-http/actions/workflows/go-test-darwin.yaml/badge.svg>
[go-test-darwin.yaml]: <https://github.com/senzing-garage/serve-http/actions/workflows/go-test-darwin.yaml>
[go-test-linux.yaml Badge]: <https://github.com/senzing-garage/serve-http/actions/workflows/go-test-linux.yaml/badge.svg>
[go-test-linux.yaml]: <https://github.com/senzing-garage/serve-http/actions/workflows/go-test-linux.yaml>
[go-test-windows.yaml Badge]: <https://github.com/senzing-garage/serve-http/actions/workflows/go-test-windows.yaml/badge.svg>
[go-test-windows.yaml]: <https://github.com/senzing-garage/serve-http/actions/workflows/go-test-windows.yaml>
[golangci-lint.yaml Badge]: <https://github.com/senzing-garage/serve-http/actions/workflows/golangci-lint.yaml/badge.svg>
[golangci-lint.yaml]: <https://github.com/senzing-garage/serve-http/actions/workflows/golangci-lint.yaml>
[install]: <https://github.com/senzing-garage/senzing-tools#install>
[localhost:8261]: <http://localhost:8261>
[senzing-tools]: <https://github.com/senzing-garage/senzing-tools>
13 changes: 6 additions & 7 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,21 @@ Since the Senzing library is a prerequisite, it must be installed first.
1. Linux

```console
${GIT_REPOSITORY_DIR}/target/linux-amd64/template-go
${GIT_REPOSITORY_DIR}/target/linux-amd64/serve-http

```

1. macOS

```console
${GIT_REPOSITORY_DIR}/target/darwin-amd64/template-go
${GIT_REPOSITORY_DIR}/target/darwin-amd64/serve-http

```

1. Windows

```console
${GIT_REPOSITORY_DIR}/target/windows-amd64/template-go
${GIT_REPOSITORY_DIR}/target/windows-amd64/serve-http

```

Expand All @@ -127,7 +127,6 @@ Since the Senzing library is a prerequisite, it must be installed first.

```


## Run

1. Run without a build.
Expand Down Expand Up @@ -336,10 +335,10 @@ Example:
[clone-repository]: https://github.com/senzing-garage/knowledge-base/blob/main/HOWTO/clone-repository.md
[docker]: https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/docker.md
[git]: https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/git.md
[Go Reference Badge]: https://pkg.go.dev/badge/github.com/senzing-garage/template-go.svg
[Go Reference]: https://pkg.go.dev/github.com/senzing-garage/template-go
[Go Reference Badge]: https://pkg.go.dev/badge/github.com/senzing-garage/serve-http.svg
[Go Reference]: https://pkg.go.dev/github.com/senzing-garage/serve-http
[go]: https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/go.md
[How to Install Senzing for Go Development]: https://github.com/senzing-garage/knowledge-base/blob/main/HOWTO/install-senzing-for-go-development.md
[localhost:6060]: http://localhost:6060/pkg/github.com/senzing-garage/template-go/
[localhost:6060]: http://localhost:6060/pkg/github.com/senzing-garage/serve-http/
[make]: https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/make.md
[testcoverage.yaml]: ../.github/coverage/testcoverage.yaml

0 comments on commit 3a35942

Please sign in to comment.