PDLPorters / devops

2 stars 0 forks source link

Solaris testing procedure #1

Open zmughal opened 9 years ago

zmughal commented 9 years ago

Recording the steps taken for testing on Solaris:

Set up VM

# using a Vagrant box from <http://www.vagrantbox.es/>
vagrant  box add solaris-11.2 http://www.benden.us/vagrant/solaris-11.2.box
vagrant init solaris-11.2
vagrant up
vagrant ssh

Download SolarisStudio 12.3 from here. You will need to create an Oracle account.

Prepare PDL build

cd /vagrant
tar xvjf SolarisStudio12.3-solaris-x86-bin.tar.bz2
echo 'export PATH=/vagrant/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin:$PATH;' >> ~/.bashrc
echo 'export MANPATH=/vagrant/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/man:$MANPATH;' >> ~/.bashrc
. ~/.bashrc

sudo perl -MCPAN -eshell
> install App::cpanminus

echo 'export PATH=/usr/perl5/5.12/bin::$PATH;' >> ~/.bashrc
echo 'export MANPATH=/usr/perl5/5.12/man:$MANPATH;' >> ~/.bashrc
. ~/.bashrc

git clone https://github.com/PDLPorters/pdl.git
cd pdl

sudo cpanm Devel::CheckLib
sudo cpanm --installdeps .

\curl -L http://install.perlbrew.pl | bash
echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bashrc
. ~/.bashrc
zmughal commented 9 years ago

More useful information at:

http://unix.stackexchange.com/questions/72882/solaris-development-host http://docs.oracle.com/cd/E24457_01/html/E21986/ossrn.html#scrolltoc http://docs.oracle.com/cd/E23824_01/html/E21802/gihhp.html

And the install page of SolarisStudio (after the Oracle login)

rsync ~/Downloads/pkg.oracle.com.* ~/sw_projects/PDLPorters/devops/devops/os/solaris/

sudo pkg set-publisher \
    -k /vagrant/pkg.oracle.com.key.pem \
    -c /vagrant/pkg.oracle.com.certificate.pem \
    -G "*" -g https://pkg.oracle.com/solarisstudio/release solarisstudio
sudo pkg install solarisstudio-123

export MANPATH=/opt/solarisstudio12.3/man:$MANPATH;
export PATH=/opt/solarisstudio12.3/bin:$PATH;
mohawk2 commented 9 years ago

If I run all of this, will I have a working Solaris vm?

Next step would be to puppetise this or by other means be able to automatically run perl module installation/tests.

zmughal commented 9 years ago

More or less. I need to clean it up some more. Or I could package up my VM. :-P

mohawk2 commented 9 years ago

The position I'd like to be in is with a process to take the vagrantbox.es image, and build it into a dev box for us. That will ensure we have a clean box. If we then package that as an even easier way in, that's a separate step.

mohawk2 commented 2 years ago

https://github.com/vmactions/solaris-vm

mohawk2 commented 2 years ago

Also available in FreeBSD! https://github.com/vmactions/freebsd-vm