Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-4760

Cannot mount local instance directory in read only mode with IG docker image

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a defect
    • Affects Version/s: 7.0.0, 7.0.0-micsvc-1.0.3
    • Fix Version/s: 7.0.0, 7.0.0-micsvc-1.0.3
    • Component/s: Docker
    • Labels:
      None
    • Sprint:
      2020.09 - IG / Microservices
    • Story Points:
      1

      Description

      This issue applies both in gcr.io/forgerock-io/ig/docker-build and in the (not merged yet) standalone docker image.
      Actually, if I mount my local instance directory in read-only mode :

      $ docker run -v /home/vio/.openig/:/var/ig/:ro gcr.io/forgerock-io/ig/docker-build
      [main] INFO  o.f.openig.launcher.Launcher @system - /var/ig/config/admin.json not readable, using default-admin.json
      [main] INFO  o.f.openig.launcher.Launcher @system - Environment:
      [main] INFO  o.f.openig.launcher.Launcher @system - - instance directory: /var/ig
      [main] INFO  o.f.openig.launcher.Launcher @system - - temporary directory: /var/ig/tmp
      [main] ERROR o.f.openig.launcher.Launcher @system - Unable to start - product stopped
      java.nio.file.NoSuchFileException: /var/ig/tmp/groovy-script-cache-7513184378261892202
      	at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
      Wrapped by: javax.script.ScriptException: java.nio.file.NoSuchFileException: /var/ig/tmp/groovy-script-cache-7513184378261892202
      	at org.forgerock.openig.script.GroovyScriptFactory.tmpDirectory(GroovyScriptFactory.java:58)
      Wrapped by: org.forgerock.http.HttpApplicationException: Error starting admin application
      	at org.forgerock.openig.http.AdminHttpApplication.<init>(AdminHttpApplication.java:291)
      [main] INFO  o.f.openig.launcher.Launcher @system - Cleaning up resources
      

      The tmp folder in .openig is growing at each startup of IG, as far as I can see when running some tests, growing full of temporary empty folder named such as groovy-script-cache-1964974339709789650/ but that be a another issue.

      As a user, I should be able to share my local IG configuration, in read-only mode, to be sure that nothing is altered, between my docker images.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                violette Violette Roche Montane
                Reporter:
                violette Violette Roche Montane
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: