.drone.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. services:
  2. selenium:
  3. image: selenium/standalone-firefox-debug:3.1
  4. docker:
  5. image: docker:17.10-dind
  6. privileged: true
  7. command: [ "--storage-driver=vfs", "--tls=false" ]
  8. pipeline:
  9. #build:
  10. # image: debian:9.0
  11. # commands:
  12. # - echo "Acquire::http::Proxy \"http://200.50.168.30:3142\";" | tee /etc/apt/apt.conf.d/00aptproxy
  13. # - apt-get update && apt-get install -yq git curl imagemagick php-cli php-curl php-mbstring php-imagick php-xml
  14. # - which compare
  15. # - env
  16. # - pwd
  17. # - ls -lash
  18. # - cd behat/testScreenshotGalvez ; php ./vendor/bin/codecept run --steps tests/acceptance/
  19. install:
  20. image: docker.infra.flowdat.com/fd3/sf-php:latest
  21. environment:
  22. - DOCKER_HOST=tcp://0.0.0.0:2375
  23. commands:
  24. - apt-get update && apt-get install -yq php-gmp
  25. - apt-get update && apt-get install -yq lsb-release
  26. - . /etc/os-release; echo $ID
  27. - lsb_release -cs
  28. - env
  29. - php -v
  30. - apt-get update && apt-get install -yq apt-transport-https ca-certificates curl gnupg2 software-properties-common
  31. - curl -fsSL https://download.docker.com/linux/$ID/gpg | apt-key add -
  32. - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$ID $(lsb_release -cs) stable"
  33. - apt-get update && apt-cache madison docker-ce
  34. - apt-get update && apt-get -yq install docker-ce=17.06.0~ce-0~debian
  35. - apt-get update && apt-get install -yq python-pip
  36. - docker --tls=false ps -a
  37. - pip install docker-compose
  38. - docker-compose -v
  39. - echo "Hasta aqui es instalación de paquetes requeridos docker y docker-compose"
  40. - cd tools
  41. - chmod 0600 keys/bitbucket.id_rsa*
  42. - eval $(ssh-agent) ; ssh-add keys/bitbucket.id_rsa
  43. - composer install -n --no-progess
  44. - rm -rf demo
  45. - php cmd.php make:install demo
  46. - cd demo
  47. - php ../cmd.php get:source git.ini
  48. - cat docker-compose.yml
  49. - docker-compose config
  50. - time docker-compose build
  51. - docker-compose up -d
  52. - docker-compose ps
  53. - "curl -H 'Host: base.fd3.flowdat.com' 127.0.0.1"