Create package list for poudriere: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Jacob
(Created page with "== On the client == The commando below extracts a the info from the pkg database into the format required for the poudriere commands # pkg info --all -E -o | awk '!($1="")' |...")
 
imported>Jacob
Line 6: Line 6:
Save the original file
Save the original file
  # cd /usr/local/poudriere/pkglist/
  # cd /usr/local/poudriere/pkglist/
  # mv 12amd64-sjapkg-pkglist 12amd64-sjapkg-pkglist.org
  # mv 12amd64-sjapkg.pkglist 12amd64-sjapkg.pkglst.org
Then merge them with sort -u which removes duplicate lines.
Then merge them with sort -u which removes duplicate lines.
  # sort -u 12amd64-sjapkg-jacloud-pkglist 12amd64-sjapkg-pkglist.org > 12amd64-sjapkg-pkglist
  # sort -u 12amd64-sjapkg-jacloud.pkglst 12amd64-sjapkg.pkglist.org > 12amd64-sjapkg.pkglist
If you need to run poudriere options, it is best to get the unique lines in the new file and run those through poudriere options. As poudriere options would go through all lines which takes a lot of time.
If you need to run poudriere options, it is best to get the unique lines in the new file and run those through poudriere options. As poudriere options would go through all lines which takes a lot of time.
  # awk 'FNR==NR {a[$0]++; next} !a[$0]' 12amd64-sjapkg-pkglist.org 12amd64-sjapkg-jacloud-pkglist > 12amd64-sjapkg-jacloud-unique-pkglist
  # awk 'FNR==NR {a[$0]++; next} !a[$0]' 12amd64-sjapkg-pkglst.org 12amd64-sjapkg-jacloud.pkglst > 12amd64-sjapkg-jacloud-unique.pkglst
And then run that one through poudriere options.
And then run that one through poudriere options.
  # poudriere options -j 12amd64 -p sjapkg -f /usr/local/poudriere/pkglist/12amd64-sjapkg-jacloud-unique-pkglist
  # poudriere options -j 12amd64 -p sjapkg -f /usr/local/poudriere/pkglist/12amd64-sjapkg-jacloud-unique.pkglst
Then run the build with the new pkglist.
Then run the build with the new pkglist.
  # poudriere bulk -j 12amd64 -p sjapkg -f /usr/local/poudriere/pkglist/12amd64-sjapkg-pkglist
  # poudriere bulk -j 12amd64 -p sjapkg -f /usr/local/poudriere/pkglist/12amd64-sjapkg.pkglst

Revision as of 13:52, 30 May 2019

On the client

The commando below extracts a the info from the pkg database into the format required for the poudriere commands

# pkg info --all -E -o | awk '!($1="")' | sed -e 's/^[ \t]*//' | sort > 12amd64-sjapkg-jacloud-pkglist

Transfer the file to the poudriere server

On the poudriere server

Save the original file

# cd /usr/local/poudriere/pkglist/
# mv 12amd64-sjapkg.pkglist 12amd64-sjapkg.pkglst.org

Then merge them with sort -u which removes duplicate lines.

# sort -u 12amd64-sjapkg-jacloud.pkglst 12amd64-sjapkg.pkglist.org > 12amd64-sjapkg.pkglist

If you need to run poudriere options, it is best to get the unique lines in the new file and run those through poudriere options. As poudriere options would go through all lines which takes a lot of time.

# awk 'FNR==NR {a[$0]++; next} !a[$0]' 12amd64-sjapkg-pkglst.org 12amd64-sjapkg-jacloud.pkglst > 12amd64-sjapkg-jacloud-unique.pkglst

And then run that one through poudriere options.

# poudriere options -j 12amd64 -p sjapkg -f /usr/local/poudriere/pkglist/12amd64-sjapkg-jacloud-unique.pkglst

Then run the build with the new pkglist.

# poudriere bulk -j 12amd64 -p sjapkg -f /usr/local/poudriere/pkglist/12amd64-sjapkg.pkglst