up.sh 901 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. cd /vagrant
  3. sudo apt-get update && \
  4. sudo apt-get upgrade -y && \
  5. sudo apt-get dist-upgrade -y && \
  6. sudo apt-get install -y \
  7. python \
  8. python-dev \
  9. python-pip \
  10. python3 \
  11. python3-dev \
  12. python3-pip \
  13. memcached \
  14. libmemcached-dev \
  15. zlib1g-dev \
  16. docker.io
  17. sudo apt-get autoremove -y
  18. # for docker stuff
  19. sudo usermod -aG docker vagrant
  20. sudo pip install -U fig
  21. PY3_VER=$(python3 -c 'import sys; print("%s.%s" % (sys.version_info[0], sys.version_info[1]))')
  22. sudo pip install virtualenv
  23. virtualenv ~/.env/cement
  24. sudo pip3 install virtualenv
  25. virtualenv-${PY3_VER} ~/.env/cement-py3
  26. # for tests
  27. killall memcached
  28. memcached &
  29. deactivate ||:
  30. source ~/.env/cement/bin/activate
  31. pip install -r requirements-dev-linux.txt
  32. python setup.py develop
  33. source ~/.env/cement-py3/bin/activate
  34. pip install -r requirements-dev-py3-linux.txt
  35. python setup.py develop