Pushing Docker images to the Docker registry
About this task
The Component Pack Helm charts use a Docker registry to pull the Docker images to run the associated pods. The required Docker images are included in the Component Pack installation package; as part of the Component Pack deployment process, you must push the Docker images to your Docker registry.
Procedure
-
Determine which Docker images you need for your Component Pack deployment.
Table 1 lists the Docker images required by the Helm chart that installs each of the Component Pack offerings.
Table 1. Docker images required by each Helm chart Helm chart Repository/image bootstrapconnections/bootstrap infrastructureconnections/appregistry-client
connections/appregistry-service
connections/middleware/haproxy
connections/middleware/mongodb
connections/middleware/mongodb-rs-setup
connections/middleware/redis
connections/middleware/redis-sentinelorientmeconnections/analysis-service
connections/community-suggestions
connections/indexing-service
connections/itm-services
connections/mail-service
connections/middleware-graphql
connections/orient-web-client
connections/people/people-datamigration
connections/people/people-idmapping
connections/people/people-relationship
connections/people/people-scoring
connections/retrieval-service
connections/middleware/solr-basic
connections/userprefs-service
connections/middleware/zookeeperelasticsearchconnections/elasticsearch mw-proxyconnections/mw-proxy elasticstackconnections/elasticsearch-curator
connections/filebeat
connections/kibana
connections/logstashsanityconnections/sanity sanity-watcherconnections/sanity-watcher cnx-ingressconnections/cnx-ingress kudos-boards-cpconnections/user
connections/boards
connections/core
connections/licence
connections/notification
connections/provider
connections/webfront
connections/minio
connections/activity-migrationNote: If you are using Amazon ECR, then before you can push the Docker images, you must create the repository to store them. Use Table 1 to determine the required repository for each of the images. -
Run the following command to push the images to the Docker registry.
- Extract the Component Pack installation package to a temporary location.
-
Navigate to the following directory within the extracted Component Pack installation
package:
extractedFolder/microservices_connections/hybridcloud/support -
Replace the existing script file setupImages.sh in
extractedFolder/microservices_connections/hybridcloud/support with the file
attached in HCL support article KB0074465. Then run the following command:
./setupImages.sh -dr Docker_registry -u Your_user_name -p Your_password -st Stack_optionswhere:Docker_registryis the name of your Docker registry (include the port if applicable)Your_user_nameis the user name for your Docker registryYour_passwordis the password for your Docker registryStack_optionsis a comma-separated list that indicates which components you want to deploy:- customizer
- elasticsearch
- orientme
- kudos-boards
If you omit this flag, all images for all components are pushed to the registry.
Note: If you have a non-authenticated Docker registry, just enter dummy values in for username and password. Docker always asks for credentials, so you must include the-uand-pflags even for a non-authenticated registry.For example, the following command uploads the Docker images for Customizer and Elasticsearch to a local Docker registry:
./setupImages.sh -dr localhost:5000 -u admin -p MyPassw0rd -st customizer,elasticsearch
