Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-379

Use LF docker credential for pulling timescale image from docker hub when running testcontainers

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • CPS-Temporal
    • None

      Timescale docker image is currently coming from docker hub when running testscontainers tests. 

      Then, it is subject to Docker Hub limit ratio failures. See patchset #2 from https://gerrit.onap.org/r/c/cps/cps-temporal/+/121072

      10:55:58 [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 77.666 s <<< FAILURE! - in org.onap.cps.temporal.ApplicationTest
      10:55:58 [ERROR] org.onap.cps.temporal.ApplicationTest.testMain  Time elapsed: 0.007 s  <<< ERROR!
      10:55:58 java.lang.ExceptionInInitializerError
      10:55:58     at org.onap.cps.temporal.ApplicationTest.<clinit>(ApplicationTest.java:35)
      10:55:58 Caused by: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=timescale/timescaledb:2.1.1-pg13, imagePullPolicy=DefaultPullPolicy())
      10:55:58     at org.onap.cps.temporal.ApplicationTest.<clinit>(ApplicationTest.java:35)
      10:55:58 Caused by: org.testcontainers.containers.ContainerFetchException: Failed to get Docker client for timescale/timescaledb:2.1.1-pg13
      10:55:58     at org.onap.cps.temporal.ApplicationTest.<clinit>(ApplicationTest.java:35)
      10:55:58 Caused by: com.github.dockerjava.api.exception.DockerClientException: Could not pull image: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
      10:55:58     at org.onap.cps.temporal.ApplicationTest.<clinit>(ApplicationTest.java:35)
      

      AC:

      • By default, timescale image is retrieved from docker hub using LF docker credentials.
      • Docker registry to get timescale image is configurable 

            renukumari renukumari
            brusak brusak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: