-This repository provides a Docker Compose configuration to set up and run OrangeHRM with MySQL as the database.
-Ensure you have the following installed on your machine:
-Docker -Docker Compose
-Clone the repository from:
-git clone https://gitlab.i2cat.net/devops/e2e-testing-front-end.git
.
├── .env
├── orange
│ └── (OrangeHRM data)
└── db_orange
└── (MySQL data)Create a .env file in the root of the project with the following content:
touch .envORANGEHRM_DATABASE_HOST=mysql
ORANGEHRM_DATABASE_USER=root
ORANGEHRM_DATABASE_PASSWORD=aLon65tr0ngPassw0rd!
ORANGEHRM_DATABASE_NAME=orangehrm
MYSQL_ROOT_PASSWORD=aLon65tr0ngPassw0rd!
MYSQL_DATABASE=orangehrmEl archivo cypress.env.example.json proporciona un ejemplo de cómo configurar las variables de entorno necesarias
para ejecutar tus pruebas en Cypress.
Es importante no incluir información sensible, como contraseñas reales, en este archivo.
Este archivo actúa como una plantilla para que los desarrolladores configuren sus propias variables de entorno locales.
Debes copiar este archivo y renombrarlo como cypress.env.json para que Cypress pueda leerlo durante la ejecución de las pruebas.
{
"username": "your_username",
"password": "your_password"
}Starting the Containers To start the OrangeHRM and MySQL containers, run:
docker-compose up -dThis command will pull the required images (if not already available) and start the containers in detached mode.
To stop the running containers, run:
docker-compose downOnce the containers are up and running, you can access OrangeHRM in your web browser at: