Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20461

Copy files from /artifactory_extra_conf every time during startup

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 6.12.0
    • Fix Version/s: None
    • Component/s: Kubernetes
    • Labels:
      None
    • Environment:

      Kubernetes v1.14.2 on AWS.

      Description

      The configuration in kubernetes gets mapped into the `/artifactory_extra_conf` directory before startup, and then the entrypoint script copies it to the correct directory.  However, it will only copy it the first time, which means configuration changes will be ignored.
       

      /entrypoint-artifactory.sh
      

      (lines 240 -> 248)

      setupDataDirs () {
          logger "Setting up Artifactory data directories if missing"
          if [ ! -d ${ARTIFACTORY_DATA}/etc ]; then
              mkdir -pv ${ARTIFACTORY_DATA}/etc || errorExit "Failed creating ${ARTIFACTORY_DATA}/etc"
      
              # Add extra conf files to a newly created etc/ only!
              addExtraConfFiles
          fi
      

      Expected behavior
      Any change to the configuration in Kubernetes should propagate to the running instance configuration.
       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            andy.pippin@arthrex.com Andy Pippin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-20461 -
                SYNCHRONIZED
                • Last Sync Date: