Giter VIP home page Giter VIP logo

Comments (6)

danielozano avatar danielozano commented on May 30, 2024 1

Hi @haelbichalex, thanks for your report!

Let me ask you some questions!

  • Which OS are you running?
  • Is it s a fresh install, or an already existing magento project and you're trying to add dockergento to it?
  • Can you give us more information about the steps you did before getting this error? (setup, etc)

Maybe this path '././vendor/* is causing problems. (probably generated by setup command) Will take a look at it.

Regards

from magento2-dockergento.

haelbichalex avatar haelbichalex commented on May 30, 2024 1
  • Running macOS 10.13.6 and Docker 2.0.0.0-beta1-mac75 (27117) as a fresh Magento 2.2.6 install.
  • Regarding the setup: I installed M2 via composer into a new folder and after installing dockergento-console I ran dockergento setup with default configuration.

Here is my docker-compose.yml:

version: "3"

services:
  app-volumes:
    build: ./config/dockergento/image/app-volumes
    volumes: &appvolumes
      - ~/.composer:/var/www/.composer:delegated
      - sockdata:/sock
      - workspace:/var/www/html
      - ./app:/var/www/html/app:delegated
      - ./.git:/var/www/html/.git:delegated
      - ./config:/var/www/html/config:delegated
      - ./composer.json:/var/www/html/composer.json:delegated
      - ./composer.lock:/var/www/html/composer.lock:delegated
      - ./:/var/www/html/:delegated

  app:
    build: ./config/dockergento/image/nginx
    ports:
      - 80:8000
    volumes: *appvolumes
    depends_on:
      - phpfpm

  phpfpm:
    image: modestcoders/php:7.1-fpm
    volumes: *appvolumes
    environment:
      PHP_IDE_CONFIG: serverName=localhost
    depends_on:
      - app-volumes
      - db

  db:
    image: mysql:5.7
    ports:
      - 3306:3306
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: magento
      MYSQL_USER: magento
      MYSQL_PASSWORD: magento
    volumes:
      - dbdata:/var/lib/mysql

  node:
    image: modestcoders/node-php:node8-php7.1
    volumes: *appvolumes
    depends_on:
      - app-volumes

  unison:
    image: modestcoders/unison:2.51.2
    volumes:
      - workspace:/var/www/html
      - ./vendor:/sync/vendor
    environment:
      - SYNC_SOURCE_BASE_PATH=/sync
      - SYNC_DESTINATION_BASE_PATH=/var/www/html
      - SYNC_MAX_INOTIFY_WATCHES=60000
    depends_on:
      - app-volumes
    privileged: true

volumes:
  dbdata:
  sockdata:
  workspace:

from magento2-dockergento.

jalogut avatar jalogut commented on May 30, 2024 1

@haelbichalex I just added a fix for that on version 1.3.2 of magento2-dockergento-console.
Could you please pull the latest version and then execute dockergento setup again? This time the docker-compose.yml should not contain the line - ./:/var/www/html/:delegated

Let us know if that fixes the problem. Thanks

from magento2-dockergento.

haelbichalex avatar haelbichalex commented on May 30, 2024 1

@jalogut Works like a charm now 👍 Thanks for your efforts.

from magento2-dockergento.

jalogut avatar jalogut commented on May 30, 2024

Hi @haelbichalex

I think there might be an error in the docker-compose.yml configuration. Could you please paste here the content of your file? Thanks

from magento2-dockergento.

jalogut avatar jalogut commented on May 30, 2024

Hi @haelbichalex

It seems to be an error in the dockergento setup command if the project is not a git repository. We are working on a fix for that. In the meantime can you do the following?

  • Open docker-compose.yml and remove this line - ./:/var/www/html/:delegated
  • Then execute the following
dockergento rebuild
dockergento composer install

from magento2-dockergento.

Related Issues (20)

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.