Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7df4248

Browse files
author
DKravtsov
committed
Improved environment configuration, updated composer dependencies and documentation.
1 parent 9a62a28 commit 7df4248

36 files changed

+1126
-953
lines changed

‎.env

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
COMPOSE_PROJECT_NAME=environment2
1818
###< docker-compose configuration ###
1919

20+
###> docker configuration that can be overridden in .env.local ###
21+
WEB_PORT_HTTP=80
22+
WEB_PORT_SSL=443
23+
# XDEBUG_CONFIG possible values: main|osx. Use main value for Linux and Windows, osx value for MacOS.
24+
XDEBUG_CONFIG=main
25+
# MySQL INNODB_USE_NATIVE_AIO possible values: 1|0. Set to 0 when AIO interface is not supported on OSX. https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_use_native_aio
26+
INNODB_USE_NATIVE_AIO=1
27+
###< docker configuration that can be overridden in .env.local ###
28+
2029
###> symfony/framework-bundle ###
2130
APP_ENV=dev
2231
APP_DEBUG=1

‎Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ARG HOST_GID=1000
99
ENV USERNAME=www-data
1010
ARG INSIDE_DOCKER_CONTAINER=1
1111
ENV INSIDE_DOCKER_CONTAINER=$INSIDE_DOCKER_CONTAINER
12+
ARG XDEBUG_CONFIG=main
13+
ENV XDEBUG_CONFIG=$XDEBUG_CONFIG
1214

1315
# check environment
1416
RUN if [ "$BUILD_ARGUMENT_ENV" = "default" ]; then echo "Set BUILD_ARGUMENT_ENV in docker build-args like --build-arg BUILD_ARGUMENT_ENV=dev" && exit 2; \
@@ -74,7 +76,7 @@ RUN a2enmod ssl
7476

7577
# install Xdebug in case dev/test environment
7678
COPY ./docker/general/do_we_need_xdebug.sh /tmp/
77-
COPY ./docker/dev/xdebug.ini /tmp/
79+
COPY ./docker/dev/xdebug-${XDEBUG_CONFIG}.ini /tmp/xdebug.ini
7880
RUN chmod u+x /tmp/do_we_need_xdebug.sh && /tmp/do_we_need_xdebug.sh
7981

8082
# install security-checker in case dev/test environment

‎Makefile

Lines changed: 79 additions & 76 deletions
Large diffs are not rendered by default.

‎composer.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@
7777
"symfony/twig-bundle": "<3.3"
7878
},
7979
"require-dev": {
80-
"bamarni/composer-bin-plugin": "^1.5",
80+
"bamarni/composer-bin-plugin": "^1.8",
8181
"doctrine/doctrine-fixtures-bundle": "^3.4",
82-
"systemsdk/easy-log-bundle": "1.10.*",
82+
"systemsdk/easy-log-bundle": "2.0.*",
8383
"roave/security-advisories": "dev-latest",
8484
"symfony/browser-kit": "6.1.*",
8585
"symfony/debug-bundle": "6.1.*",
86-
"symfony/maker-bundle": "^1.45",
86+
"symfony/maker-bundle": "^1.47",
8787
"symfony/requirements-checker": "^2.0",
8888
"symfony/stopwatch": "6.1.*",
8989
"symfony/var-dumper": "6.1.*",
@@ -97,20 +97,14 @@
9797
"symfony/polyfill-php81": "*"
9898
},
9999
"config": {
100+
"allow-plugins": true,
100101
"platform": {
101102
"php": "8.1.0"
102103
},
103104
"preferred-install": {
104105
"*": "dist"
105106
},
106-
"sort-packages": true,
107-
"allow-plugins": {
108-
"composer/package-versions-deprecated": true,
109-
"bamarni/composer-bin-plugin": true,
110-
"ergebnis/composer-normalize": true,
111-
"symfony/flex": true,
112-
"symfony/runtime": true
113-
}
107+
"sort-packages": true
114108
},
115109
"extra": {
116110
"allow-contrib": "true",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /