Code Monkey home page Code Monkey logo

demo-project-manager's People

Contributors

elisdn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo-project-manager's Issues

Composer version issue

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:

image

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.

wait-db

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

An exception occurred in driver: could not find driver

Здравствуйте! Использую вашу сборку, только вместо 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

Подскажите, что может быть не так?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.