netresearch / timetracker

Simple time tracking front end with optional Jira synchronization, AD/LDAP integration and XLSX export.
GNU Affero General Public License v3.0
21 stars 27 forks source link

docker-compose fixes #41

Closed cweiske closed 3 years ago

cweiske commented 3 years ago

"docker-compose up" currently fails because

  1. composer.lock is not up to date with composer.json
  2. composer2 gets installed, which is not able to install the timetracker dependencies:
$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - ocramius/package-versions is locked to version 1.5.1 and an update of this package was not requested.
    - ocramius/package-versions 1.5.1 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
  Problem 2
    - ocramius/package-versions 1.5.1 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - ocramius/proxy-manager 2.6.1 requires ocramius/package-versions ^1.5.1 -> satisfiable by ocramius/package-versions[1.5.1].
    - ocramius/proxy-manager is locked to version 2.6.1 and an update of this package was not requested.

ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4.
If you can not upgrade PHP you can require composer/package-versions-deprecated to resolve this with PHP 7.0+.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
cweiske commented 3 years ago

(!) Problematic: The http container still mounts the local web directory instead of having the code inside.

Currently, the compose files are of no real use.

CybotTM commented 3 years ago

(!) Problematic: The http container still mounts the local web directory instead of having the code inside.

Yes, the same happens for 'app' in docker-compose.override.yml

Currently, the compose files are of no real use.

Yes, it is more a draft for development environment. With some "dev" parts already moved into override - some not. Currently it is only useful for dev environment. There is no solution for prod environment - because you need to share sources between app and httpd container - or change the build system (putting all in one image: HTTP server and PHP runtime).