Forums › Forums › OroCRM › OroCRM – Installation/Technical Issues or Problems › oro with docker
This topic contains 18 replies, has 3 voices, and was last updated by ignat 8 years, 4 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- December 11, 2015 at 5:55 am #26857
Hello, I want to ship oro-crm with a docker image and integrate it with my CI. The problem is, every time I build the image I have to run the php app/console oro:install which is not suitable because it will drop my current database, is there any way so I can install oro skipping the drop database ??
- CreatorTopic
- AuthorReplies
- December 11, 2015 at 3:29 pm #26858
Hi pauloasterio,
Are you sure app/console oro:install drops DB? When I need to re-install Oro during development I usually run simple script like that:
PHP1234mysql -uroot -e "drop database crm_enterprise_dev"mysql -uroot -e "create database crm_enterprise_dev"app/console oro:install --env dev --organization-name OroCRM --user-name admin --user-email admin@example.com --user-firstname John --user-lastname Doe --user-password admin --sample-data y --application-url http://localhost --force --timeout 3600I guess oro:install is not dropping DB by default. There is an option “–drop-database” in this command, but you should be able just to not pass it.
Just in case run app/console oro:install –help to see other options.
Thanks,
IgnatDecember 12, 2015 at 10:41 am #26859Hello ignat!
Thanks for your response, it actually drops my schema and all my data goes with it.
——————————————————————+
Dropping database schema…
Database schema dropped successfully!
Clear the entity config cache
Clear extended entity cache
Setting up database.
Process migrations…My scenario is to be able to add nodes to my orocrm farm as needed, as I can see, this is a hard task ..
Any idea?
regards.
Paulo Asterio
December 14, 2015 at 2:13 am #26860Hello
If you would like to add more containers to your environment, you don’t need to reinstall application every time. I hope this documentation will help you to solve your problem: http://oroinc.com/orocrm/doc/current/book/scale-nodes
December 14, 2015 at 5:39 am #26861Hello Dima,
Thank you for the link, I had already seen these instructions but I think cloning the install is error prone and it breaks my CI workflow, I believe I should be able to just install a new oro instance and point it to a existing database without dropping it. I’m guessing this is not possible yet.
Let me know.
tks
December 14, 2015 at 5:52 am #26862It is possible, just create proper parameters.yml file and warmup cache, you don’t need to run install. Do you have any issues with such flow?
December 14, 2015 at 5:55 am #26863That sounds good to me, let me try it I’ll let you know.
Appreciate it..
Paulo
December 14, 2015 at 6:19 am #26864I ran into this error, could you guys help me ?
[2015-12-14 12:13:34] request.CRITICAL: Uncaught PHP Exception ErrorException: “Catchable Fatal Error: Argument 1 passed to HWI\Bundle\OAuthBundle\Security\Http\EntryPoint\OAuthEnt
ryPoint::__construct() must be an instance of Symfony\Component\Security\Http\HttpUtils, instance of Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel given
, called in /var/www/orocrm/app/cache/prod/appProdProjectContainer.php on line 15865 and defined in /var/www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/Ent
ryPoint/OAuthEntryPoint.php on line 45” at /var/www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/EntryPoint/OAuthEntryPoint.php line 45 {“exception”:”[object
] (ErrorException: Catchable Fatal Error: Argument 1 passed to HWI\\Bundle\\OAuthBundle\\Security\\Http\\EntryPoint\\OAuthEntryPoint::__construct() must be an instance of Symfony\\
Component\\Security\\Http\\HttpUtils, instance of Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel given, called in /var/www/orocrm/app/cache/prod/appP
rodProjectContainer.php on line 15865 and defined in /var/www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/EntryPoint/OAuthEntryPoint.php on line 45 at /var/
www/orocrm/vendor/hwi/oauth-bundle/HWI/Bundle/OAuthBundle/Security/Http/EntryPoint/OAuthEntryPoint.php:45)”} []December 15, 2015 at 11:32 am #26865What is the version of Oro you are using? Please run these commands:
PHP12php composer.phar show -i | grep orophp composer.phar show -i | grep hwi/oauth-bundleDecember 15, 2015 at 11:37 am #26866both return nothing
but I’m using oro 1.8.2
December 15, 2015 at 11:56 am #26867Maybe it’s just the case of how you are using composer in your environment, try this one without grep:
PHP1php composer.phar show -iDecember 15, 2015 at 11:59 am #26868root@6990fb717cbf:/var/www/orocrm# composer show -i | grep oro
oro/crm 1.8.2 OroCRM
oro/crm-zendesk 1.5.0 OroCRM Zendesk Integration
oro/doctrine-extensions 1.0.9 Doctrine Extensions for MySQL and PostgreSQL.
oro/jsplumb 1.7.6 jsPlumb provides a means for a developer to visually connect elements on their web pages.
oro/moment-timezone 0.3.1 Parse and display dates in any timezone
oro/platform 1.8.2 Business Application Platform (BAP)
root@6990fb717cbf:/var/www/orocrm#
root@6990fb717cbf:/var/www/orocrm# composer show -i | grep hwi/oauth-bundle
hwi/oauth-bundle 0.3.9 Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony2.
root@6990fb717cbf:/var/www/orocrm#December 15, 2015 at 12:28 pm #26869Did you change anything in config.yml to enable SSO in your application?
December 15, 2015 at 12:28 pm #26870no
December 15, 2015 at 12:29 pm #26871And when do you receive this error?
December 15, 2015 at 12:30 pm #26872When I try to access the app
- AuthorReplies
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.