Luciano Andrade 7 years ago
parent
commit
f418a9eab5
2 changed files with 10 additions and 6 deletions
  1. 8 4
      .drone.yml
  2. 2 2
      app/config/parameters.yml.dist

+ 8 - 4
.drone.yml

@@ -1,5 +1,5 @@
 services:
-  database:
+  mysql:
     image: mysql:5.7
     environment:
       - MYSQL_ROOT_PASSWORD=
@@ -9,8 +9,10 @@ services:
   amqp:
     image: rabbitmq:3-management
 pipeline:
+ 
  build:
     image: docker.infra.flowdat.com/fd3/sf-php:latest
+
     environment:
       HOST_FTTH: ftth.test.fd3.flowdat.com
       HOST_STATS: stats.test.fd3.flowdat.com
@@ -20,12 +22,14 @@ pipeline:
       OAUTH_CLIENT_SECRET: ""
       AMQP_KEY: ""
       CLIENT: fd3
+      ENV_LIST: "dev,test,prod"
+
     commands:
       - command -v mysqladmin >/dev/null 2>&1 || { echo "I require mysqladmin but it's not installed.  Aborting." >&2; exit 1; }
-      - while ! mysqladmin ping -h 127.0.0.1 --silent; do :; done
+      - while ! mysqladmin ping -h mysql --silent ; do :; done
 
-      - yes | mysqladmin -h 127.0.0.1 create fd3_ftth
-      - yes | mysqladmin -h 127.0.0.1 create fd_session
+      - yes | mysqladmin -h mysql create fd3_ftth
+      - yes | mysqladmin -h mysql create fd_session
 
       - echo 'client = Flowdat3-FTTH-Drone-Test' | tee /etc/flowdat.conf
       - echo 'date.timezone="America/Argentina/Buenos_Aires"' >> /etc/php/7.0/cli/php.ini

+ 2 - 2
app/config/parameters.yml.dist

@@ -2,7 +2,7 @@
 # Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production.
 # http://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
 parameters:
-    database_host:     127.0.0.1
+    database_host:     mysql
     database_port:     ~
     database_name:     fd3_ftth
     database_user:     root
@@ -23,7 +23,7 @@ parameters:
     url_logout: 'http://%env(HOST_MAPAS)%/logout'
 
     # RabbitMQ parameters
-    rabbit_mq.host:     127.0.0.1
+    rabbit_mq.host:     amqp
     rabbit_mq.port:     5672
     rabbit_mq.user:     'guest'
     rabbit_mq.password: 'guest'