Gallery2 is fully compatible with OutSite-In.
In order to take your Gallery2 web site on CD or simply offline, we recommend you to:
Modify the "\config.php" file by editing your offline files directory:
Find the line starting with:
$gallery->setConfig('data.gallery.base',...
and change it to:
$gallery->setConfig('data.gallery.base', $_SERVER['DOCUMENT_ROOT'].'/g2data/');
Find the line starting with:
$storeConfig['hostname'] =...
and change it to:
$storeConfig['hostname'] = 'localhost';
(tested with Gallery 2.2.1 full version)