Hosting Proprietary Packages¶
Note
The use of self-signed certificate can comport security risks.
Proprietary packages, such as RedHat are not delivered as part of the UForge repository. You must have the original ISO images of the operating system in questions and follow the steps below.
For example, to add a RedHat repository:
- Mount the iso into /mnt (on the works node)
- Create the appropriate directory layout under /tmp/USER_DATA/repos/ for example: /tmp/USER_DATA/repos/RHEL/6.5/x86_64/
- Copy all the contents of the DVD into /tmp/USER_DATA/repos/RHEL/6.5/x86_64/
- If the repositories does not already contain a repodata folder, you must create it inside the package directory
# cd /tmp/USER_DATA/repos/RHEL/6.5/x86_64/ # createrepo .
Create the repository using the UForge CLI as follows:
uforge org repo create --name "RHEL 6.5 os" --repoUrl "http://127.0.0.1/repos/RHEL/6.5/x86_64/" --type RPM -u $ADMIN -p $PASS The –-name specified here is the “tagname” that will be shown in the UI when creating an appliance. The --repoUrl can be either http://Attach repository to the distribution as follows:
uforge org repo os attach --name RHEL --repoIds 954 -u $ADMIN -p $PASSPopulate repository packages:
/opt/UShareSoft/uforge/cron/update_repos_pkgs.sh This procedure may take a long time.To verify if the procedure is terminated, run the following command:
# tail -f /tmp/USER_DATA/FactoryContainer/logs/repos/spider/<directory name with date>/spider.stdout The procedure is terminated when you see the line: // INFO CheckForRepositoriesUpdates:275 - Entering CheckForRepositoriesUpdates->terminate()
Create OS profile based on packages (minimal, server, etc.):
/opt/UShareSoft/uforge/bin/launch_distro_sorter.sh -a x86_64 -d RHEL -v 6.5Populate the packages for the new repository:
ARCHS=x86_64 DEBUG=y COS_VERS=6.5 /opt/UShareSoft/uforge/bin/exec_uploads.sh -w UssPkgs -p <uforge port> -U $ADMIN -P $PASS /tmp/DISTROS/USS/usspkgs