Uploaded image for project: 'integration-distribution'
  1. integration-distribution
  2. INTDIST-57

Investigate using JSR-200 packing for populated system directory in distribution

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • unspecified
    • None
    • Karaf
    • None
    • Operating System: All
      Platform: All

    • 6192

    Description

      Using a simple script:

      #!/bin/sh

      input="$1"
      base=`echo $1 | sed 's/.jar$//'`
      output="$base.pack.gz"

      echo -n "Compressing $input ..."
      pack200 -q "$output" "$input"
      if [ $? -eq 0 ]; then
      rm -f "$input"
      echo " success"
      else
      rm -f "$output"
      echo " failed"
      fi

      and running

      user@work : ~/distribution-karaf-0.5.0-SNAPSHOT/system$ time find . -name *.jar | sort -u | xargs -n 1 ~/p.sh
      real 9m49.336s
      user 30m25.764s
      sys 1m41.299s

      results in ~50% size savings in the resulting distrution. It is non-functional because feature:install fails to install, but that is something that could be fixed by an appropriate plugin into karaf.

      Investigate how this could be integrated into our simultaneous release distribution.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: