Skip to content

Latest commit

 

History

History
131 lines (109 loc) · 5.72 KB

make-docker-images-with-updated-senzing.md

File metadata and controls

131 lines (109 loc) · 5.72 KB

How to make Docker images with updated Senzing

Preparation

  1. Verify version name.
    1. Senzing version: M.m.P-?????

Update Docker images on Docker Hub

Update Docker images on Docker Hub - Phase 1

  1. Find updated version of debian Docker image.

  2. Update properties in update-dockerfiles-step-1-example.json

  3. Create Pull Requests by running:

    export GITHUB_ACCESS_TOKEN=ghp_....................................
    github-util.py update-dockerfiles --configuration-file update-dockerfiles-step-1-example.json
  4. Review and accept Pull requests generated.

  5. Create issues for creating versioned releases (i.e. changes to Dockerfile and CHANGELOG.md). Examples:

    1. senzingapi-runtime
      1. Update senzingapi-runtime version in Dockerfile
    2. docker-senzing-base
    3. docker-base-image-debian
  6. Close issues

  7. Create GitHub releases

Update Docker images on Docker Hub - Phase 2

  1. Find updated version of senzing/senzingapi-runtime Docker image.

  2. Update properties in update-dockerfiles-step-2-example.json

  3. Create Pull Requests by running:

    export GITHUB_ACCESS_TOKEN=ghp_....................................
    github-util.py update-dockerfiles --configuration-file update-dockerfiles-step-2-example.json
  4. Review and accept Pull requests generated.

  5. Create issues for creating versioned releases (i.e. changes to Dockerfile and CHANGELOG.md). Examples:

    1. senzingapi-tools
      1. Update senzingapi-tools version in Dockerfile
  6. Close issues

  7. Create GitHub releases

Update Docker images on Docker Hub - Phase 3

  1. Find updated versions of alpine, amazonlinux, busybox, debian, ibmcom/db2, jupyter minimal-notebook, lambda/python, node, senzing/senzing-base senzing/senzingapi-runtime, senzing/senzingapi-tools Docker images.

  2. Update properties in update-dockerfiles-step-3-example.json

  3. Create Pull Requests by running:

    export GITHUB_ACCESS_TOKEN=ghp_....................................
    github-util.py update-dockerfiles --configuration-file update-dockerfiles-step-3-example.json
  4. Review and accept Pull requests generated.

  5. Once :latest versions are available on DockerHub, run a small test similar to docker-compose-rabbitmq-postgresql, but with :latest versions. Example:

    export SENZING_VOLUME=~/my-senzing
    export PGADMIN_DIR=${SENZING_VOLUME}/pgadmin
    export POSTGRES_DIR=${SENZING_VOLUME}/postgres
    export RABBITMQ_DIR=${SENZING_VOLUME}/rabbitmq
    export SENZING_VAR_DIR=${SENZING_VOLUME}/var
    export SENZING_UID=$(id -u)
    export SENZING_GID=$(id -g)
    mkdir -p ${PGADMIN_DIR} ${POSTGRES_DIR} ${RABBITMQ_DIR} ${SENZING_VAR_DIR}
    chmod -R 777 ${SENZING_VOLUME}
    curl -X GET \
        --output ${SENZING_VOLUME}/docker-compose.yaml \
        "https://raw.githubusercontent.com/Senzing/docker-compose-demo/main/resources/postgresql/docker-compose-rabbitmq-postgresql.yaml"
    cd ${SENZING_VOLUME}
    sudo --preserve-env docker-compose pull
    sudo --preserve-env docker-compose up
    
  6. Create versioned releases (including changes to Dockerfile and CHANGELOG.md) of

    1. senzing/docker-senzing-console
    2. senzing/docker-sshd
    3. senzing/docker-xterm
    4. senzing/entity-search-web-app-console
    5. senzing/entity-search-web-app
    6. senzing/init-postgresql
    7. senzing/redoer
    8. senzing/senzing-api-server
    9. senzing/stream-loader
    10. senzing/stream-producer
  7. After the new senzing/senzing-api-server is on DockerHub, update the Git "senzing-api-server" submodule in senzing/senzing-poc-server and make a new versioned release.

  8. After the new senzing/senzing-poc-server and senzing/entity-search-web-app are on DockerHub, update the COPY Docker instructions in the senzing/docker-web-app-demo Dockerfile and make a new versioned release.

  9. Create versioned releases (including changes to Dockerfile and CHANGELOG.md) of the repositories listed in the repositories section of update-dockerfiles-step-3-example.json.

Update Docker images on AWS Elastic Container Registry

  1. ...