/sandbox

sandbox.propelorm.org

Primary LanguageJavaScript

PropelSandbox (sandbox.propelorm.org)

Install

  1. Install the bundle into AppKernel
  2. Import its config and routing.yml
  3. Configure your system
useradd sandbox --home /home/sandbox
echo 'www-data ALL= NOPASSWD: /var/www/propelsandbox/src/PropelSandbox/Resources/meta/jail.sh' >> /etc/sudoers // or sudo visudo

#dont forget to do this on server boot, use iptables-persistent
iptables -I OUTPUT -j REJECT -m owner --gid-owner sandbox 
iptables -I OUTPUT -j ACCEPT -p tcp -d 127.0.0.1 -m owner --gid-owner sandbox
  1. make sure /var/www/propelsandbox/src/PropelSandbox/Resources/meta/jail.sh is only writeable by root!
  2. fire bower install in src/PropelSandbox
  3. make sure /tmp/propelsandbox is writeable by your web server
  4. user sandbox needs access to /tmp/propelsandbox/, /tmp/propelsandbox/chroots/ rx.
  5. Make sure all dependencies are set up. See @propelorm/sandbox-vagrant/bootstrap.sh for more information.