mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Update Flex endpoint
This commit is contained in:
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8&charset=utf8mb4\"",
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-16}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
||||
" volumes:",
|
||||
" - database_data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"database_data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (16) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '16'",
|
||||
" use_savepoints: true",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: '%kernel.project_dir%/src/Entity'",
|
||||
" prefix: 'App\\Entity'",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: false",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname: 'main_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "06cff6e09c2f454bf6d8fca915ee25e1bb4d04cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8\"",
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-16}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
||||
" volumes:",
|
||||
" - database_data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"database_data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (16) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '16'",
|
||||
" use_savepoints: true",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: '%kernel.project_dir%/src/Entity'",
|
||||
" prefix: 'App\\Entity'",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: false",
|
||||
" metadata_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "86d2beb9c1f9ee71b9f66a45588517852c7d4620"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8&charset=utf8mb4\"",
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-16}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
||||
" volumes:",
|
||||
" - database_data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"database_data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (16) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '16'",
|
||||
" use_savepoints: true",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" dir: '%kernel.project_dir%/src/Entity'",
|
||||
" prefix: 'App\\Entity'",
|
||||
" alias: App",
|
||||
"",
|
||||
"when@test:",
|
||||
" doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
|
||||
"",
|
||||
"when@prod:",
|
||||
" doctrine:",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: false",
|
||||
" proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
" framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "91690c0a440faba1a3676256bcca2b4aa9f55b72"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8\"",
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-16}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
||||
" volumes:",
|
||||
" - database_data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"database_data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (16) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '16'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: '%kernel.project_dir%/src/Entity'",
|
||||
" prefix: 'App\\Entity'",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: false",
|
||||
" metadata_cache_driver:",
|
||||
" type: service",
|
||||
" id: doctrine.system_cache_provider",
|
||||
" query_cache_driver:",
|
||||
" type: service",
|
||||
" id: doctrine.system_cache_provider",
|
||||
" result_cache_driver:",
|
||||
" type: service",
|
||||
" id: doctrine.result_cache_provider",
|
||||
"",
|
||||
"services:",
|
||||
" doctrine.result_cache_provider:",
|
||||
" class: Symfony\\Component\\Cache\\DoctrineProvider",
|
||||
" public: false",
|
||||
" arguments:",
|
||||
" - '@doctrine.result_cache_pool'",
|
||||
" doctrine.system_cache_provider:",
|
||||
" class: Symfony\\Component\\Cache\\DoctrineProvider",
|
||||
" public: false",
|
||||
" arguments:",
|
||||
" - '@doctrine.system_cache_pool'",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b618e23cce0c0e9c1bca00082dd6db0536acd07a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://app:!ChangeMe!@127.0.0.1:3306/db_name?serverVersion=8\"",
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/db_name?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-16}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
||||
" volumes:",
|
||||
" - database_data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"database_data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (16) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '16'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
"",
|
||||
" # backtrace queries in profiler (increases memory usage per request)",
|
||||
" #profiling_collect_backtrace: '%kernel.debug%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: '%kernel.project_dir%/src/Entity'",
|
||||
" prefix: 'App\\Entity'",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: false",
|
||||
" metadata_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d6ef6ae99dbd6f70ca244db45af1cd6650c28a5d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/panther": {
|
||||
"manifest": {
|
||||
"dockerfile": [
|
||||
"# Chromium and ChromeDriver",
|
||||
"ENV PANTHER_NO_SANDBOX 1",
|
||||
"# Not mandatory, but recommended",
|
||||
"ENV PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'",
|
||||
"RUN apt-get install -y --no-install-recommends chromium chromium-driver",
|
||||
"",
|
||||
"# Firefox and geckodriver",
|
||||
"#ARG GECKODRIVER_VERSION=0.34.0",
|
||||
"#RUN apt-get install -y --no-install-recommends firefox",
|
||||
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz; \\",
|
||||
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz -C /usr/bin; \\",
|
||||
"#\trm geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz"
|
||||
],
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.xml.dist",
|
||||
"content": " <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * Install <fg=green>ChromeDriver</> or <fg=green>geckodriver</> with ",
|
||||
" the package manager of your Operating System.",
|
||||
" ",
|
||||
" Alternatively, use Browser Driver Installer:",
|
||||
"",
|
||||
" <fg=green>composer require --dev dbrekelmans/bdi</>",
|
||||
" <fg=green>vendor/bin/bdi detect drivers</>",
|
||||
"",
|
||||
" This step is not necessary when using Docker."
|
||||
]
|
||||
},
|
||||
"files": [],
|
||||
"ref": "3ead1b290ba6d708cc0cbcb8b1dbbf8e6fa3c0c0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,10 +20,7 @@
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/db_name?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
@@ -131,7 +128,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ddaef874d696cf6db4591c446d011221c94194cb"
|
||||
"ref": "d6ef6ae99dbd6f70ca244db45af1cd6650c28a5d"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
@@ -140,7 +137,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "4c795ada6b987f9c35734cb9bb0ef0fd270ca316"
|
||||
"ref": "b618e23cce0c0e9c1bca00082dd6db0536acd07a"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
@@ -124,7 +121,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "498e6f872a673b670f8b90435e6a93ae0012758b"
|
||||
"ref": "86d2beb9c1f9ee71b9f66a45588517852c7d4620"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
@@ -131,7 +128,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "018748af7d7e778bfd2eade71d3fec72faaa2440"
|
||||
"ref": "06cff6e09c2f454bf6d8fca915ee25e1bb4d04cd"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
@@ -126,7 +123,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "cc62b7e9470998c640ee99d284a013a676f1fc5e"
|
||||
"ref": "91690c0a440faba1a3676256bcca2b4aa9f55b72"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
"DATABASE_URL": "postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j\"$(nproc)\" pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
"RUN install-php-extensions pdo_pgsql"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
@@ -130,7 +127,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "81769aac11f7bf18fa5b5956b1395119e1730f70"
|
||||
"ref": "17a8aa6f671ae0d2b557f19b7b0d4ccd992aa57d"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
"ENV PANTHER_NO_SANDBOX 1",
|
||||
"# Not mandatory, but recommended",
|
||||
"ENV PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'",
|
||||
"RUN apk add --no-cache chromium chromium-chromedriver",
|
||||
"RUN apt-get install -y --no-install-recommends chromium chromium-driver",
|
||||
"",
|
||||
"# Firefox and geckodriver",
|
||||
"#ARG GECKODRIVER_VERSION=0.29.0",
|
||||
"#RUN apk add --no-cache firefox",
|
||||
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz; \\",
|
||||
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz -C /usr/bin; \\",
|
||||
"#\trm geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz"
|
||||
"#ARG GECKODRIVER_VERSION=0.34.0",
|
||||
"#RUN apt-get install -y --no-install-recommends firefox",
|
||||
"#RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz; \\",
|
||||
"#\ttar -zxf geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz -C /usr/bin; \\",
|
||||
"#\trm geckodriver-v$GECKODRIVER_VERSION-aarch64.tar.gz"
|
||||
],
|
||||
"add-lines": [
|
||||
{
|
||||
@@ -38,7 +38,7 @@
|
||||
]
|
||||
},
|
||||
"files": [],
|
||||
"ref": "292a3236e81f55b545b09b9954ab097248972ab3"
|
||||
"ref": "3ead1b290ba6d708cc0cbcb8b1dbbf8e6fa3c0c0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user