Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker para pruebas de timbrao
Full Description


Build the image:
docker build -t timbrao-docker .

Run the container:
docker run --name timbrao --detach -v /absolute-path/timbrao:/var/www/html -p 80:80 -p 3306:3306 -p 27017:27017 edblancas/timbrao-docker /sbin/my_init --enable-insecure-key


  • The environment variable $PWD if we are in the timbrao-docker directory, if not, specify th absolute directory of the timbrao project.
  • Tag db for an image with DB created (the docker exec... from below), if not specified (latest) image without DB.
  • To run in the background add the --detach option.
  • We must have the composer dependencies installed in the timbrao project.
  • Add /sbin/my_init --enable-insecure-key to the final run command for ssh acces. Se link for instructions.

Once the container (latest tag) is running, for grant remote access and create the DB:
docker exec timbrao /var/lib/mysql/setup/

You must run composer install in the directory of timbrao php project where you are linking the docker volume.


Para entrar a la imagen que está corriendo:
docker exec -it timbrao bash

Para debug, correr firefox y ver el proceso en local:

  1. Bajar el firefox directo de la pagina (extraerolo en /opt/firefox/) y exportar al path.
    export PATH=/opt/firefox:$PATH

  2. Bajar selenium
    java -jar /opt/selenium/selenium-server-standalone-2.53.1.jar -port 4446

  3. Cambiar la config del de selenium a la ip de mi maquina, si se queda en localhost es el selenium de docker

Docker Pull Command
Source Repository