Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.5.8
    • Fix Version/s: None
    • Component/s: Docker Image
    • Labels:
      None

      Description

      My current usecase is to modify artifactory logs to output json.

      Working with the official docker image I've extended it in the following way.

      I've modified the artifactory etc/logback.xml file accordingly

       

       

      <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
              <encoder class="net.logstash.logback.encoder.LogstashEncoder">
                  <includeContext>false</includeContext>
                  <includeMdc>false</includeMdc>
                  <timeZone>UTC</timeZone>
                  <customFields>{"artifactory":"console"}</customFields>
                  <fieldNames>
                      <version>[ignore]</version>
                  </fieldNames>
              </encoder>
          </appender>
       
      

       

      the problem is the inclusion of https://repo.maven.apache.org/maven2/net/logstash/logback/logstash-logback-encoder/5.2/logstash-logback-encoder-5.2.jar in the webapp. I've temporarily solved it by extending the official artifactory docker image, downloading the dependency and running 'jar uf $ARTIFACTORY_HOME/webapps/artifactory.war WEB-INF/lib/logstash-logback-encoder-5.2.jar'

      Because of how docker filesystem layers work, this duplicates the artifactory.war file in the resulting image.

      it would be nice if we had a way to include a folder or list of jars into the webapp's core classpath, without updating the war file burned into the image

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                atlassianbuildteam Atlassian Build Team
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: