diff --git a/core/README.md b/core/README.md index 1862a05..d720400 100644 --- a/core/README.md +++ b/core/README.md @@ -68,4 +68,15 @@ If you want to start all services, you can use extras. A profile can be started docker compose up -d --profile extras ``` +# Starting a PHP project in development mode (only lifecycle, profile and engineblock) +You can mount your local directory inside a development container which contains the correct node and composer versions for your project. To do so use the script start-dev-env.sh. You can use this script to mount multiple directories in multiple containers, basically allowing you to start multiple containers in dev mode. + +To mount the code in just one container: +`start-dev-env.sh profile:../../OpenConext-profile` +The recommended way is to use absolute paths and the script requires the name of the service and local code path to be separated by a `:`. + +To mount the code in multiple containers: +`start-dev-env.sh profile:../../OpenConext-profile userlifecycle:../../OpenConext-user-lifecycle` +You can add as many services+local code paths that you need. +The recommended way is to use absolute paths and the script requires the name of the service and local code path to be separated by a `:`, for each service. diff --git a/core/engine/docker-compose.override.yml b/core/engine/docker-compose.override.yml index 404b134..c22f4ab 100644 --- a/core/engine/docker-compose.override.yml +++ b/core/engine/docker-compose.override.yml @@ -1,5 +1,5 @@ services: - profile: + engine: image: ghcr.io/openconext/openconext-basecontainers/${ENGINE_PHP_IMAGE:-php72-apache2-node14-composer2:latest} volumes: - ${ENGINE_CODE_PATH}:/var/www/html diff --git a/core/userlifecycle/docker-compose.override.yml b/core/userlifecycle/docker-compose.override.yml index 28dd3ff..4e245b5 100644 --- a/core/userlifecycle/docker-compose.override.yml +++ b/core/userlifecycle/docker-compose.override.yml @@ -1,5 +1,5 @@ services: - profile: + userlifecycle: image: ghcr.io/openconext/openconext-basecontainers/${USERLIFECYCLE_PHP_IMAGE:-php72-apache2-node14-composer2:latest} volumes: - ${USERLIFECYCLE_CODE_PATH}:/var/www/html