Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/senzing-garage/docker-wrap-image-with-senzing-data

Add /opt/senzing/data to a base image.
https://github.com/senzing-garage/docker-wrap-image-with-senzing-data

dockerfile senzing-garage utility

Last synced: 14 days ago
JSON representation

Add /opt/senzing/data to a base image.

Lists

README

        

# docker-wrap-image-with-senzing-data

If you are beginning your journey with
[Senzing](https://senzing.com/),
please start with
[Senzing Quick Start guides](https://docs.senzing.com/quickstart/).

You are in the
[Senzing Garage](https://github.com/senzing-garage)
where projects are "tinkered" on.
Although this GitHub repository may help you understand an approach to using Senzing,
it's not considered to be "production ready" and is not considered to be part of the Senzing product.
Heck, it may not even be appropriate for your application of Senzing!

## Overview

This repository shows how to
[bake-in](https://github.com/senzing-garage/knowledge-base/blob/main/WHATIS/baked-in.md)
a Senzing data installation (`/opt/senzing/data`) into a Debian/Ubuntu based docker image.

## EULA

To use the Senzing code, you must agree to the End User License Agreement (EULA).

1. :warning: This step is intentionally tricky and not simply copy/paste.
This ensures that you make a conscious effort to accept the EULA.
Example:

export SENZING_ACCEPT_EULA="<the value from [this link](https://github.com/senzing-garage/knowledge-base/blob/main/lists/environment-variables.md#senzing_accept_eula)>"

## Environment variables

1. :pencil2: Identify the existing image to be wrapped.
Example:

```console
export BASE_IMAGE="senzing/stream-loader:1.8.3"
```

1. :pencil2: Name the new image that will be produced.
Example:

```console
export NEW_IMAGE="public.ecr.aws/senzing/stream-loader-spike:1.8.3"
```

## Build Docker image

1. Run the `docker build` command.
Example:

```console
docker build \
--build-arg BASE_IMAGE=${BASE_IMAGE} \
--build-arg SENZING_ACCEPT_EULA=${SENZING_ACCEPT_EULA} \
--tag ${NEW_IMAGE} \
https://github.com/senzing-garage/docker-wrap-image-with-senzing-data.git#main
```