Public | Automated Build

Last pushed: a year ago
Short Description
Docker para pruebas de timbrao
Full Description

timbrao-docker

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

Options:

  • 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/setup.sh

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

Debug

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 config.inc.php de selenium a la ip de mi maquina, si se queda en localhost es el selenium de docker

Docker Pull Command
Owner
edblancas
Source Repository

Comments (0)