Показаны сообщения с ярлыком Docker. Показать все сообщения
Показаны сообщения с ярлыком Docker. Показать все сообщения

воскресенье, 1 сентября 2019 г.

Ways to optimize a Sylius project in dev mode

If you feel that your Sylius dev configuration is slow, try this:

1) use nginx (or docker with nginx) instead of php bin/console server:run
2) be sure XDebug is disabled
3) add these lines to your php.ini:

opcache.memory_consumption=256
opcache.max_accelerated_files=20000
realpath_cache_size=4096K

How to fix "504 gateway timeout" [php] [xdebug]

At the long PHP debug browser responds with "504 gateway timeout". If you want to increase this debugging period,

1) set in /etc/nginx/nginx.conf:
http {
    ...
    fastcgi_read_timeout 3600;
    ...
}
2) set this line in php.ini:
request_terminate_timeout = 3600s

3) restart nginx or restart containers.

It also possible to do in your Docker configuration.

пятница, 12 апреля 2019 г.

[PHP] Docker doesn't applies code changes in container!

Be sure your php.ini doesn't have opcache.validate_timestamps=0. Actually there is no issues with Docker, only OPcache.

пятница, 30 ноября 2018 г.

Aws ecs-cli created fargate instance instead of ec2 fix

Be sure you ran ecs-cli up --capability-iam --instance-type t2.micro  with argument --cluster-config <configname>
, where configname is already created with ecs-cli configure command.

среда, 26 сентября 2018 г.

[Docker] how to solve 'VOLUME: not found' or 'COPY: not found'

If you receive a "/bin/sh: COPY: command not found" (or VOLUME) error, you should check that previous Dockerfile line is closed properly. For example, if you have similar like below,

RUN set -eux; \
   apk add --no-cache --virtual .build-deps \
      git \
   ;

do not forget to enclose your line with \ and ; symbols.

понедельник, 30 апреля 2018 г.

How to fix "the system cannot find the file specified. (code: 2)" and "unable to evaluate symlinks in Dockerfile"

If you receive "unable to evaluate symlinks in Dockerfile path" or "windows named pipe error: the system cannot find the file specified. (code: 2)" errors on Docker for Windows, enable Hyper-V in "turn on or off windows features" app and restart the computer.