akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

install pim-community-standart with docker #9062

Closed hayuns closed 5 years ago

hayuns commented 5 years ago

HI, I need help to install pim-community-standart with docker. I'm following the installation guide here. I did these steps:

  1. Download and extract pim-community-standart.

In the 'Mandatory folders' paragraph

  1. I don't have composer folder into my 'docker' folder so I just created a new folder named 'composer'.

  2. I don't have 'yarn-cache' folder so I created node and (inside it) year-cache folders.

  3. I didn't update the compose file because my compose file looks like different. My compose file: docker-compose.yml.txt

  4. I don't need run tests but I even that created the tmp > behat > screenshots folders.

  5. I ran these commands: a. docker-compose pull b. docker-compose up -d

  6. I change the database_host in parameter.yml from localhost to mysql.

  7. I ran the pim-depencies scripts: a. docker-compose exec fpm php -d memory_limit=3G /usr/local/bin/composer update b. docker-compose run --rm node yarn install result: yarn install.txt

  8. I ran the pim-depencies scripts: a. docker-compose exec fpm rm -rf var/cache/* b. docker-compose exec fpm bin/console --env=prod pim:install --force --symlink --clean Here the srcipt fails:

My error:

_Prepare database schema Dropped database for connection named akeneo_pim Created database akeneo_pim for connection named default ATTENTION: This operation should not be executed in a production environment.

Creating database schema... Database schema created successfully! Nothing to update - your database is already in sync with the current entity metadata. Reset elasticsearch indexes In StaticNoPingConnectionPool.php line 51: No alive nodes found in your cluster The command terminated with an error code: 1. Error during PIM installation. The command terminated with an error code: 1._

If I run the last command in the file : docker-compose run --rm node yarn run webpack-dev My error.txt

What is wrong? Did not I understand something? Do I need to change something? I also tried to change index_hosts in my parameters file and run again from the clean cache script.

Can you please help me?? My result on localhost:8080

hayuns commented 5 years ago

I solved this problem by installing elasticsearch, now I just have an error from the last script docker-compose run --rm node yarn run webpack. the error: ERROR in multi babel-polyfill ./web/bundles/pimenrich/js/index.js Module not found: Error: Can't resolve '/srv/pim/web/bundles/pimenrich/js/index.js' in '/srv/pim' @ multi babel-polyfill ./web/bundles/pimenrich/js/index.js error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

suavelizard commented 5 years ago

@hayuns did you end up figuring this out?