A Docker wrapper over the apt command.
This repository creates a Docker wrapper over the apt command.
It can be used to download and extract "deb" files.
The default behavior is to install the latest senzingapi packages.
At Senzing, we strive to create GitHub documentation in a "don't make me think" style. For the most part, instructions are copy and paste. Whenever thinking is needed, it's marked with a "thinking" icon :thinking:. Whenever customization is needed, it's marked with a "pencil" icon :pencil2:. If the instructions are not clear, please let us know by opening a new Documentation issue describing where we can improve. Now on with the show...
To use the Senzing code, you must agree to the End User License Agreement (EULA).
: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>"Senzing follows the Linux File Hierarchy Standard.
Environment variables will be used in --volume options to externalize the installations.
:pencil2: Specify the directory where to install Senzing. Example:
export SENZING_VOLUME=~/my-senzing
SENZING_VOLUME.SENZING_VOLUME.Run Docker container. Example:
docker run \
--env SENZING_ACCEPT_EULA=${SENZING_ACCEPT_EULA} \
--rm \
--volume ${SENZING_VOLUME}:/opt/senzing \
senzing/apt
When complete, Senzing is installed in the SENZING_VOLUME directory.
For more examples of use, see Examples of Docker.
The following instructions are used when modifying and building the Docker image.
:thinking: The following tasks need to be complete before proceeding. These are "one-time tasks" which may already have been completed.
For more information on environment variables, see Environment Variables.
Set these environment variable values:
export GIT_ACCOUNT=senzing
export GIT_REPOSITORY=docker-apt
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.
Option #1: Using docker command and GitHub.
sudo docker build \
--tag senzing/apt \
https://github.com/senzing/docker-apt.git#main
Option #2: Using docker command and local repository.
cd ${GIT_REPOSITORY_DIR}
sudo docker build --tag senzing/apt .
Option #3: Using make command.
cd ${GIT_REPOSITORY_DIR}
sudo make docker-build
Note: sudo make docker-build-development-cache can be used to create cached Docker layers.
The following examples require initialization described in Demonstrate using Docker.
By not setting SENZING_ACCEPT_EULA_PARAMETER, the containerized yum install will prompt for manual EULA acceptance.
Run Docker container. Example:
sudo docker run \
--interactive \
--rm \
--tty \
--volume ${SENZING_VOLUME}:/opt/senzing \
senzing/apt
senzing/apt can be used to install local DEB files.
To download Senzing DEB file, see github.com/Senzing/docker-aptdownloader.
:pencil2: Set additional environment variables. Identify directory containing DEB files and the exact names of the DEB files. Example:
export SENZING_DEB_DIR=~/Downloads
export SENZING_API_DEB_FILENAME=senzingapi-nn.nn.nn.x86_64.rpm
export SENZING_DATA_DEB_FILENAME=senzingdata-v1-nn.nn.nn.x86_64.rpm
Run the Docker container. Example:
sudo docker run \
--env SENZING_ACCEPT_EULA=${SENZING_ACCEPT_EULA} \
--rm \
--volume ${SENZING_VOLUME}:/opt/senzing \
--volume ${SENZING_DEB_DIR}:/data \
senzing/apt -y localinstall \
/data/${SENZING_DATA_DEB_FILENAME} \
/data/${SENZING_API_DEB_FILENAME}
Configuration values specified by environment variable or command line parameter.
Content type
Image
Digest
sha256:d9bddf1ba…
Size
51.7 MB
Last updated
about 1 year ago
docker pull senzing/apt