Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup the project locally and docs for it #6

Closed
SOHELAHMED7 opened this issue Jun 5, 2024 · 0 comments · Fixed by #5
Closed

Setup the project locally and docs for it #6

SOHELAHMED7 opened this issue Jun 5, 2024 · 0 comments · Fixed by #5
Assignees

Comments

@SOHELAHMED7
Copy link
Member

Ensure local development / installation / testing of this library is smooth. Also add docs about it.

While running make up, following error is faced:

$ make up
docker-compose up -d
Starting yii2-fractal_pgsql_1 ... done
Starting yii2-fractal_php_1   ... done
chmod +rw -R tests/tmp
chmod: changing permissions of 'tests/tmp': Operation not permitted
chmod: changing permissions of 'tests/tmp/api-access.log': Operation not permitted
chmod: changing permissions of 'tests/tmp/.composer': Operation not permitted
chmod: changing permissions of 'tests/tmp/api-error.log': Operation not permitted
chmod: changing permissions of 'tests/tmp/postgres': Operation not permitted
chmod: cannot read directory 'tests/tmp/postgres': Permission denied
make: *** [Makefile:27: up] Error 1

While running make installdocker following error is faced:

php-openapi/yii2-fractal$ make installdocker
docker-compose run --rm php composer install && chmod +x tests/testapp/yii
Creating yii2-fractal_php_run ... done
Switching uid for 'www-data' to 33
usermod: no changes
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php >=7.4.0 but your php version (7.1.33) does not satisfy that requirement.
  Problem 2
    - Root composer.json requires league/fractal ^0.20.0 -> satisfiable by league/fractal[0.20, 0.20.1].
    - league/fractal[0.20, ..., 0.20.1] require php >=7.4 -> your php version (7.1.33) does not satisfy that requirement.
  Problem 3
    - codeception/module-rest[2.0.0, ..., 2.0.3] require php ^7.4 | ^8.0 -> your php version (7.1.33) does not satisfy that requirement.
    - codeception/module-rest[3.0.0, ..., 3.3.2] require php ^8.0 -> your php version (7.1.33) does not satisfy that requirement.
    - Root composer.json requires codeception/module-rest ^2.0 | ^3.0 -> satisfiable by codeception/module-rest[2.0.0, 2.0.1, 2.0.2, 2.0.3, 3.0.0, ..., 3.3.2].

ERROR: 2
make: *** [Makefile:35: installdocker] Error 2


PR for this issue will be #5

@SOHELAHMED7 SOHELAHMED7 self-assigned this Jun 5, 2024
@SOHELAHMED7 SOHELAHMED7 linked a pull request Jun 5, 2024 that will close this issue
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 a pull request may close this issue.

1 participant