elisdn / demo-project-manager Goto Github PK
View Code? Open in Web Editor NEWDemo project for Symfony workshop
Home Page: https://elisdn.ru/project-manager
License: Other
Demo project for Symfony workshop
Home Page: https://elisdn.ru/project-manager
License: Other
Hi, I would like to say thank you for your work.
I found a bug while I tried to build a project locally. It has happened because in your dockerfile you use the latest composer version, but composer.lock requires 1.0 composer API version.
You can see the problem on the picture:
The best way to fix this problem would be to recreate the git tree of the master branch, because this problem is solved at the middle of repository, but I think you will not accept this PR from me.
Anyway, I've fixed it in PR as a hotfix at the end of the commit tree (only a single commit), and I would be happy if you accept it.
until docker-compose exec -T manager-postgres pg_isready --timeout=0 --dbname=app ; do sleep 1 ; done
Не всегда работает корректно. Миграции пытаются примениться до того, как поднимается postgres. Тоже самое с mysql.
Решение: https://github.com/vishnubob/wait-for-it
docker-compose exec app /app/docker/scripts/wait-for-it.sh mysql:3306
Здравствуйте! Использую вашу сборку, только вместо postgres хочу подключить mysql. Написал следующие docker-файлы:
php-fpm.docker
FROM php:7.2-fpm
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client \
&& docker-php-ext-install mcrypt pdo_mysql
WORKDIR /app
php-cli.docker
FROM php:7.2-cli
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client \
&& docker-php-ext-install mcrypt pdo_mysql pcntl
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/bin --filename=composer --quiet
ENV COMPOSER_ALLOW_SUPERUSER 1
WORKDIR /app
В docker-compose.yml добавил образ mysql:
engine-mysql:
image: mysql:5.7
restart: always
environment:
- "MYSQL_ROOT_PASSWORD=xx"
- "MYSQL_USER=user"
- "MYSQL_PASSWORD=xx"
- "MYSQL_DATABASE=db"
ports:
- "3306:3306"
При попытке выполнения следующих двух команд возникает ошибка, которую указал в заголовке:
docker-compose exec php-fpm bash &&
php bin/console doctrine:database:create
Подскажите, что может быть не так?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.