-
Notifications
You must be signed in to change notification settings - Fork 0
Building Source on CentOS
- Git
- The following yum groups are required
- Additional Development
- Compatibility libraries
- Development tools
- Server Platform Development
- Web Server
Checkout the Stacki repository from github.com. It is about 1.6 GB in size. To build the repo, youll need another 12 GB of usable space.
# mkdir /export/src
# cd /export/src
# git clone [email protected]:StackIQ/stacki.git
-
Run Bootstrap
# cd /export/src/stacki # make bootstrap
-
Remove the src/order-stacki.mk file
# rm src/order-stacki.mk
-
Source /etc/profile.d/stack-build.sh file
# source /etc/profile.d/stack-build.sh
-
Make RPMS for all packages
# make -C src rpm
Note: This step will take a very long time. Some packages may fail to build. This is OK, since we're still in the bootstrap stage.
-
The above command will create a build directory and place all the built RPMS in it. The next step is to create a yum-compatible repository.
# createrepo build-stacki-master/RPMS
-
Write
/etc/yum.repos.d/buildstacki.repo
file with the following content.[buildstacki] name=Build Stacki baseurl=file:///export/src/stacki/build-stacki-master/RPMS/ enabled=1 gpgcheck=0
-
Refresh yum information
# yum clean all # yum makecache all
-
Install the stack-wizard package. This will allow us to create a site.attrs file that may then be used to create the frontend installation file
# yum install -y stack-wizard foundation-redhat foundation-py-ipaddress
-
Create /tmp/site.attrs file by running the wizard
# boss_config_snack.py --no-net-reconfig
Note: For information on how to configure your stacki installation, refer to Installation Wizard
-
Create the installation script
# stack list node xml server basedir=. attrs=/tmp/site.attrs | \ stack list host profile chapter=bash profile=shell > /tmp/frontend.sh
-
Run /tmp/frontend.sh
# sh -x /tmp/frontend.sh 2>&1 | tee /tmp/frontend-install.log
-
At this point, the frontend should have the Stacki database running, and the frontend should be added to the database. Reboot the machine
# reboot
-
Download the CentOS DVDs. Note:
- For CentOS 7, download the CentOS-7 everything ISO
- For CentOS 6, download the CentOS-6 Bin DVD1 and DVD2 ISO files
-
Add the ISO to the machine
# stack add pallet CentOS-*.iso # stack enable pallet CentOS
# cd /export/src/stacki
# make roll
Checkout our Google Group or our Slack Team for any support or other questions.
Want to contribute to this Wiki? Fork it and send a pull request.