senzing-package docker image 镜像
source link: https://hub.docker.com/r/senzing-package
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker pull senzing-package
The Senzing Package Installer docker image is used to install the Senzing API onto mounted volumes.
The following is an example of use:
-
Set environment variables. Example:
export SENZING_SUBCOMMAND=install export SENZING_DATA_DIR=~/my-senzing/data export SENZING_G2_DIR=~/my-senzing/g2
-
Create directories. Example:
mkdir -p ${SENZING_DATA_DIR} mkdir -p ${SENZING_G2_DIR}
-
Optional: The docker container runs as "USER root" by default. If a different userid (UID) is required, set
SENZING_RUNAS_USER_PARAMETER
in the following manner:-
Manually identify user. Example:
export SENZING_RUNAS_USER="1001" export SENZING_RUNAS_GROUP="1001"
Another option, use current user. Example:
export SENZING_RUNAS_USER=$(id -u) export SENZING_RUNAS_GROUP=$(id -g)
-
Construct parameter for
docker run
. Example:export SENZING_RUNAS_USER_PARAMETER="--user ${SENZING_RUNAS_USER}:${SENZING_RUNAS_GROUP}"
-
-
Run docker container. Change
M.m.P
to the Major.minor.Patch version. Example:sudo docker run \ ${SENZING_RUNAS_USER_PARAMETER} \ --env SENZING_SUBCOMMAND="${SENZING_SUBCOMMAND}" \ --rm \ --volume ${SENZING_DATA_DIR}:/opt/senzing/data \ --volume ${SENZING_G2_DIR}:/opt/senzing/g2 \ store/senzing/senzing-package:M.m.P
More information at github.com/Senzing/senzing-package.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK