Skip to content

Setup the project locally and docs for it #6

Closed
@SOHELAHMED7

Description

@SOHELAHMED7

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions