New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sql docker container exists everytime when running in the XP mode #154
Comments
Keyword here is "Existing Sitecore databases found in 'C:\data'..." ... you properly have run XM or another compose before so whenever you are switching you need to clean the .\data folder, you can use the .\Clean-Data.ps1 script for that. Else fresh databases / indexes for the given topology will not be seeded. |
Thanks that worked. But I need to run solr and sitecore as on secure port by generating the ssl certificates. |
Good :) I can't point you to an example but what we are doing (sometime locally and always in upstream environments) is to put a proxy in front that does SSL termination. Looks like this:
The point is that you only manage certificates 1 place instead of in all applications. BTW solr should not normally be exposed on to the internet :) |
@pbering Looks like not only me faced with this issue during starting to work with Sitecore images. May be it make sense to change volume mappings for different configurations to avoid overlapping? e.g. for xm: What do you think? |
I am not trying to expose it to the internet but just to run in a secure environement . |
@VipraB I do not know if any such scripts exists in the community. |
@Antonytm I don't think that is a good idea since the purpose of /tests/ is mainly for those contributing so they easy validate images. It's also used by the community as a starting point and should be copied and modified as needed else where. We haven't really started to use https://github.com/Sitecore/docker-demo yet but it seems like a better place for what you are asking for. |
Seems like this is not an issue. Perhaps document that a cleanup is required when switching and then close the issue. |
Solr is not able to connect to the SQL docker container .The Processing enginer when trying to connect to the SQL it is not able to make the connection and gives the below error.
docker logs --details 8ff951b4c3d3
Existing Sitecore databases found in 'C:\data\'...
Attaching 'sc_Core'...
Attaching 'sc_Exm.master'...
Attaching 'sc_Experienceforms'...
Attaching 'sc_MarketingAutomationAzure'...
Attaching 'sc_Marketingautomation'...
Attaching 'sc_Master'...
Attaching 'sc_Messaging'...
Attaching 'sc_Processing.Engine.Storage'...
Attaching 'sc_Processing.Engine.Tasks'...
Attaching 'sc_Processing.pools'...
Attaching 'sc_Processing.tasks'...
Attaching 'sc_Referencedata'...
Attaching 'sc_Reporting'...
Attaching 'sc_Sessions'...
Attaching 'sc_Web'...
Attaching 'sc_Xdb.Collection.Shard0'...
Attaching 'sc_Xdb.Collection.Shard1'...
Attaching 'sc_Xdb.Collection.ShardMapManager'...
Preparing Sitecore databases...
Invoke-Sqlcmd : Invalid object name
'Sitecore.Xdb.Collection.ShardMapManager.__ShardManagement.ShardsGlobal'.
At C:\Boot.ps1:44 char:1
The text was updated successfully, but these errors were encountered: