Skip to content

Conversation

@Art4
Copy link
Collaborator

@Art4 Art4 commented Dec 18, 2023

This PR adds a docker-compose.yml and some docker configuration. This allows us to quickly setup a dev environment using PHP 8.3, Redmine 5.1.1 and MariaDB 10.11 by running docker compose up -d.

This command installs Redmine, runs the database migration and starts Redmine. The Redmine instance is available at http://localhost:3000 and can be used with the default credentials admin/admin. By modifying the version numbers in the docker-compose.yml a custom Redmine version can be installed.

This PR is the base for more integration tests and features depending on different Redmine versions.

To install all dependencies of php-redmine-api run docker compose exec -u 1000 php composer update.

The PHPUnit tests can be run with docker compose exec -u 1000 php composer run test.

The PHPStan tests can be run with docker compose exec -u 1000 php composer run phpstan.

The Code coverate can be run with docker compose exec -u 1000 php composer run coverage.

@Art4 Art4 added this to the v2.4.0 milestone Dec 18, 2023
@gitguardian
Copy link

gitguardian bot commented Dec 18, 2023

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
- Generic Password 9377bc5 docker-compose.yml View secret
- Generic Password 9377bc5 docker-compose.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@codecov
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5277a93) 95.98% compared to head (258083e) 95.98%.

Additional details and impacted files
@@            Coverage Diff            @@
##               v2.x     #336   +/-   ##
=========================================
  Coverage     95.98%   95.98%           
  Complexity      395      395           
=========================================
  Files            27       27           
  Lines          1220     1220           
=========================================
  Hits           1171     1171           
  Misses           49       49           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Art4 Art4 requested a review from kbsali December 18, 2023 14:51
Copy link
Owner

@kbsali kbsali left a comment

Choose a reason for hiding this comment

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

😍
awesome!

@Art4 Art4 merged commit a1fd6dd into kbsali:v2.x Dec 19, 2023
@Art4 Art4 deleted the add-docker-support branch December 19, 2023 10:21
@Art4 Art4 mentioned this pull request Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants