Criar infraestrutura para o Ambiente Plone-4.3.1r1

    • Python-2.7.4
      $ wget http://python.org/ftp/python/2.7.4/Python-2.7.4.tar.bz2
      $ tar xjvf Python-2.7.4.tar.bz2 -C /usr/src/
      $ ./configure --prefix=/opt/env-buildout/Python-2.7.4
      $ cd /usr/src/Python-2.7.4/
      $ make && make install
    • Setuptools-0.6.c11
      $ wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
      $ tar xvzf setuptools-0.6c11.tar.gz -C /usr/src/
      $cd /usr/src/setuptools-0.6c11/
      $ /opt/env-buildout/Python-2.7.4/bin/python2.7 setup.py install
    • Virtualenv-1.9.1
      $ /opt/env-buildout/Python-2.7.4/bin/easy_install virtualenv==1.9.1
    • Disponibilização no ambiente
      ln -vs /opt/env-buildout/Python-2.7.4/bin/python2.7 /usr/local/bin/python2.7.4
      ln -vs /opt/env-buildout/Python-2.7.4/bin/py /usr/local/bin/easy_install-2.7.4
      ln -vs /opt/env-buildout/Python-2.7.4/bin/virtualenv-2.7 /usr/local/bin/virtualenv-2.7.4
    • distribute-0.6.28
      $ easy_install-2.7.4 distribute==0.6.28
    • Criar Ambiente virtual Python
      $ virtualenv-2.7.4 /opt/env-buildout/prod/8270-p431-`date +%s`/py27
    • Pip-1.5.4 Instalando através dos fontes:
      $ https://raw.github.com/pypa/pip/master/contrib/get-pip.py
      $ cd /opt/env-buildout/prod/8270-p431-*
      $ ./py27/bin/python get-pip.py
      ou através easy_install:
      $ ./py27/bin/easy_install pip
    • zc.buildout-1.7.1
      $ ./py27/bin/pip install zc.buildout==1.7.1
    • Iniciar buildout
      ./py27/bin/buildout init
    • criar estrutura básica
      mkdir -pv buildout-cache/downloads
    • Executar buildout
      ./bin/buildout -Nt 20 -c buildout.cfg
  • Comentários