/docker-hello-world

Dockerfile for testing docker formations.

Primary LanguageMakefileApache License 2.0Apache-2.0

docker-hello-world

If you are beginning your journey with Senzing, please start with Senzing Quick Start guides.

You are in the 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

The senzing/hello-world and senzing/hello-world-on-hub-docker-com docker images print:

Hello world at Day Mon dd hh:mm:ss UTC yyyy
Hello world at Day Mon dd hh:mm:ss UTC yyyy
 :

to STDOUT at an interval defined by SENZING_SLEEP_TIME in seconds. Default: 600 seconds (10 minutes).

This minimal docker image is used for testing docker formations in products like Docker-compose, Kubernetes, Rancher, etc.

It can be used to compare behavior of local docker registry/repository with DockerHub.

  1. senzing/hello-world is not on DockerHub. It must be built locally.
  2. senzing/hello-world-on-hub-docker-com is on DockerHub and will be pulled automatically.

Related artifacts

  1. DockerHub
  2. Helm charts:
    1. senzing-hello-world-on-hub-docker-com
    2. senzing-hello-world

Contents

  1. Build local docker image
  2. Run Docker container from local image
  3. Run Docker container from DockerHub image

Build local docker image

  1. Build image. Example:

    sudo docker build \
      --tag senzing/hello-world \
      https://github.com/senzing-garage/docker-hello-world.git#main

Configuration

Run Docker container from local image

  1. Run the docker container. Example:

    sudo docker run \
      senzing/hello-world
  2. Run the docker container with SLEEP_TIME. Example:

    sudo docker run \
      --env SENZING_SLEEP_TIME=30 \
      senzing/hello-world

Run Docker container from DockerHub image

  1. Run the docker container. Example:

    sudo docker run \
      senzing/hello-world-on-hub-docker-com