GlassFish Repo IPS Package Build InstructionsNote: at this point, it is highly recommended that you use Solaris or Linux system for your package development and build. Windows and MacOS builds should work but have not been verified... PrerequisitesFollowing tools/utilities should be installed and configured on your system before build:
You will also need to install Image Packaging System (IPS) toolkit image for your build platform. Downloads are available here: UC 2.1 Linux x86 toolkit image UC 2.1 Solaris x86 toolkit image UC 2.1 Solaris Sparc toolkit image See also the toolkit download page which has all the downloads listed, including 2.2 development builds Location where you unzipped your toolkit image will be referred to as ips-toolkit-dir. You should update your PATH and LD_LIBRARY_PATH environment variables in following way: export PATH=ips-toolkit-dir/pkg/bin:ips-toolkit-dir/pkg/python2.4-minimal/bin:$PATH Checking out glassfish-repo source codeRun following command to check out glassfish-repo source: svn checkout https://glassfish-repo.java.net/svn/glassfish-repo/trunk/packager Create your own package module(s)First you will need to decide on the number of packages you want to produce, their names and content, versioning, content file layout. Use these resources at this stage: Once you know the number of packages and their names you can create package modules using these steps:
Start your local repository serverRun following command from your {{ips-toolkit-dir/bin}}directory: pkg.depotd -d ips-toolkit-dir/pkg --rebuild Note: this will start repository server using default port 10000 and the repository url will therefore be http://localhost:10000. If you want, you can specify different port number. Refer to Build you packageRun following command from packager/package-name directory: mvn -Drepo.url=http://localhost:10000 -Dpython=ips-toolkit-dir/pkg/python2.4-minimal/bin/python -P ips Note: if you used alternative port number for your repository server, make sure that you adjust repo.url value accordingly! If everything goes well, this command will bootstrap and stage your package content and publish IPS package based on staged content and prototype file metadata specified in your package module. If not, read error messages carefully and use them to correct your package module files. Verify your packageTo check whether your package got published to your local repository server, you can simply access repository URL in your browser and see the list of packages available on the server. If you see your package, you can proceed to the package testing using GlassFish v3 installation and its update client. Use these steps (if you already have GlassFish v3 Prelude installed and updatetool bootstrapped you can skip first two items):
At this point you can verify that your files are installed in appropriate locations and perform any relevant functional testing. Commit your package moduleOnce you are satisfied that your package works as expected, you can contact glassfish-repo project owners to get permission to commit your package module to glassfish-repo SVN repository. |