Skip to content

Adição do Docker e Dusk para o Monitoring#23

Open
Dreamwanter5 wants to merge 3 commits into
fflch:masterfrom
Dreamwanter5:master
Open

Adição do Docker e Dusk para o Monitoring#23
Dreamwanter5 wants to merge 3 commits into
fflch:masterfrom
Dreamwanter5:master

Conversation

@Dreamwanter5

Copy link
Copy Markdown
  • docker-compose.yml está de acordo com o padrão UspDev.
  • From do Dockerfile está com o PHP 8.4
  • Para fins de teste, adicionei uma rota a mais no arquivo web.php

Copilot AI review requested due to automatic review settings June 1, 2026 15:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a Docker-based local environment (app + MariaDB + Selenium) and scaffolds Laravel Dusk browser testing support.

Changes:

  • Introduces Laravel Dusk test harness + example browser tests/pages.
  • Adds Dockerfile and docker-compose.yml with MariaDB and Selenium services for local runs.
  • Updates .env.example, composer.json, and adds a / route to support local testing.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tests/DuskTestCase.php Adds Dusk driver configuration and Chrome options for browser tests.
tests/Browser/source/.gitignore Ignores generated Dusk artifacts while keeping directory in repo.
tests/Browser/screenshots/.gitignore Ignores generated Dusk artifacts while keeping directory in repo.
tests/Browser/console/.gitignore Ignores generated Dusk artifacts while keeping directory in repo.
tests/Browser/Pages/Page.php Adds base Dusk Page class scaffold.
tests/Browser/Pages/HomePage.php Adds HomePage scaffold for Dusk.
tests/Browser/IndexTest.php Adds example Dusk test.
tests/Browser/ExampleTest.php Adds example Dusk test.
routes/web.php Adds root route pointing to StatusController@index for local tests.
dockerfile Adds container image build steps for the app.
docker-compose.yml Adds app + MariaDB + Selenium services for local environment.
composer.json Adds laravel/dusk and spatie/laravel-ignition to dev dependencies.
.env.example Switches DB defaults to MariaDB service and adds Dusk env vars.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker-compose.yml
@@ -0,0 +1,47 @@
services:
monitoring:
build: .
Comment thread docker-compose.yml
Comment on lines +16 to +17
volumes:
- ./:/var/www/html
Comment thread routes/web.php
use App\Http\Controllers\MesaController;
use App\Http\Controllers\TesteController;

Route::get('/', [StatusController::class,'index']); # adicionado em caso de testes locais
Comment thread routes/web.php
use App\Http\Controllers\MesaController;
use App\Http\Controllers\TesteController;

Route::get('/', [StatusController::class,'index']); # adicionado em caso de testes locais

namespace Tests\Browser;

use Illuminate\Foundation\Testing\DatabaseMigrations;

namespace Tests\Browser;

use Illuminate\Foundation\Testing\DatabaseMigrations;
Comment thread docker-compose.yml
- monitoring-network

selenium:
image: selenium/standalone-chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants