Skip to content

Commit

Permalink
Add Sitecore Microsoft Dynamics CRM Connector Container Deployment 8.…
Browse files Browse the repository at this point in the history
…0.1521.01521.209 (#115)
  • Loading branch information
sc-chienweisi authored Jan 13, 2023
1 parent 507ce95 commit 7c1c725
Show file tree
Hide file tree
Showing 20 changed files with 232 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compose/dcrm/8.0/ltsc2019/xp0/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Add the following environment variables to the Sitecore Platform .env file

#The connectionstring for Dynamics CRM Connect, for example, AuthType=Office365;Url=<dynamics-crm-url>;Username=<username>;Password=<password>
ConnectionString_DCRM=

#The connectionstring for Staging database, for example, user id=<user-id>;password=<password>;data source=<data-source>;database=<database>
ConnectionString_StagingDB=
12 changes: 12 additions & 0 deletions compose/dcrm/8.0/ltsc2019/xp0/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
cm:
image: sitecore-dcrm-xp0-cm:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_DCRM: ${ConnectionString_DCRM}
Sitecore_ConnectionStrings_Sitecore.DataExchange.Staging: ${ConnectionString_StagingDB}
xdbsearchworker:
image: sitecore-dcrm-xp0-xdbsearchworker:${SITECORE_VERSION}
xconnect:
image: sitecore-dcrm-xp0-xconnect:${SITECORE_VERSION}
mssql-init:
image: sitecore-dcrm-xp0-mssql-init:${SITECORE_VERSION}
7 changes: 7 additions & 0 deletions compose/dcrm/8.0/ltsc2019/xp1/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Add the following environment variables to the Sitecore Platform .env file

#The connectionstring for Dynamics CRM Connect, for example, AuthType=Office365;Url=<dynamics-crm-url>;Username=<username>;Password=<password>
ConnectionString_DCRM=

#The connectionstring for Staging database, for example, user id=<user-id>;password=<password>;data source=<data-source>;database=<database>
ConnectionString_StagingDB=
14 changes: 14 additions & 0 deletions compose/dcrm/8.0/ltsc2019/xp1/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
cm:
image: sitecore-dcrm-xp1-cm:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_DCRM: ${ConnectionString_DCRM}
Sitecore_ConnectionStrings_Sitecore.DataExchange.Staging: ${ConnectionString_StagingDB}
xdbsearchworker:
image: sitecore-dcrm-xp1-xdbsearchworker:${SITECORE_VERSION}
xdbsearch:
image: sitecore-dcrm-xp1-xdbsearch:${SITECORE_VERSION}
xdbcollection:
image: sitecore-dcrm-xp1-xdbcollection:${SITECORE_VERSION}
mssql-init:
image: sitecore-dcrm-xp1-mssql-init:${SITECORE_VERSION}
7 changes: 7 additions & 0 deletions compose/dcrm/8.0/ltsc2022/xp0/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Add the following environment variables to the Sitecore Platform .env file

#The connectionstring for Dynamics CRM Connect, for example, AuthType=Office365;Url=<dynamics-crm-url>;Username=<username>;Password=<password>
ConnectionString_DCRM=

#The connectionstring for Staging database, for example, user id=<user-id>;password=<password>;data source=<data-source>;database=<database>
ConnectionString_StagingDB=
12 changes: 12 additions & 0 deletions compose/dcrm/8.0/ltsc2022/xp0/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
cm:
image: sitecore-dcrm-xp0-cm:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_DCRM: ${ConnectionString_DCRM}
Sitecore_ConnectionStrings_Sitecore.DataExchange.Staging: ${ConnectionString_StagingDB}
xdbsearchworker:
image: sitecore-dcrm-xp0-xdbsearchworker:${SITECORE_VERSION}
xconnect:
image: sitecore-dcrm-xp0-xconnect:${SITECORE_VERSION}
mssql-init:
image: sitecore-dcrm-xp0-mssql-init:${SITECORE_VERSION}
7 changes: 7 additions & 0 deletions compose/dcrm/8.0/ltsc2022/xp1/.env-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Add the following environment variables to the Sitecore Platform .env file

#The connectionstring for Dynamics CRM Connect, for example, AuthType=Office365;Url=<dynamics-crm-url>;Username=<username>;Password=<password>
ConnectionString_DCRM=

#The connectionstring for Staging database, for example, user id=<user-id>;password=<password>;data source=<data-source>;database=<database>
ConnectionString_StagingDB=
14 changes: 14 additions & 0 deletions compose/dcrm/8.0/ltsc2022/xp1/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
cm:
image: sitecore-dcrm-xp1-cm:${SITECORE_VERSION}
environment:
Sitecore_ConnectionStrings_DCRM: ${ConnectionString_DCRM}
Sitecore_ConnectionStrings_Sitecore.DataExchange.Staging: ${ConnectionString_StagingDB}
xdbsearchworker:
image: sitecore-dcrm-xp1-xdbsearchworker:${SITECORE_VERSION}
xdbsearch:
image: sitecore-dcrm-xp1-xdbsearch:${SITECORE_VERSION}
xdbcollection:
image: sitecore-dcrm-xp1-xdbcollection:${SITECORE_VERSION}
mssql-init:
image: sitecore-dcrm-xp1-mssql-init:${SITECORE_VERSION}
10 changes: 10 additions & 0 deletions k8s/dcrm/8.0/ltsc2019/overrides/xp1/init/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../../xp1/init

images:
- name: scr.sitecore.com/sxp/sitecore-xp1-mssql-init
newName: "{registry}/sitecore-dcrm-xp1-mssql-init"
newTag: tag
22 changes: 22 additions & 0 deletions k8s/dcrm/8.0/ltsc2019/overrides/xp1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../xp1

images:
- name: scr.sitecore.com/sxp/sitecore-xp1-cm
newName: "{registry}/sitecore-dcrm-xp1-cm"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xp1-xdbcollection
newName: "{registry}/sitecore-dcrm-xp1-xdbcollection"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xp1-xdbsearch
newName: "{registry}/sitecore-dcrm-xp1-xdbsearch"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xp1-xdbsearchworker
newName: "{registry}/sitecore-dcrm-xp1-xdbsearchworker"
newTag: tag

patchesStrategicMerge:
- patch-cm.dcrm.yaml
28 changes: 28 additions & 0 deletions k8s/dcrm/8.0/ltsc2019/overrides/xp1/patch-cm.dcrm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cm
spec:
selector:
matchLabels:
app: cm
template:
metadata:
labels:
app: cm
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- name: sitecore-xp1-cm
env:
- name: Sitecore_ConnectionStrings_DCRM
valueFrom:
secretKeyRef:
name: sitecore-dcrm-connection-strings
key: sitecore-dcrm.txt
- name: Sitecore_ConnectionStrings_Sitecore.DataExchange.Staging
valueFrom:
secretKeyRef:
name: sitecore-dcrm-connection-strings
key: sitecore-data-exchange-staging.txt
14 changes: 14 additions & 0 deletions k8s/dcrm/8.0/ltsc2019/overrides/xp1/secrets/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../../xp1/secrets

generatorOptions:
disableNameSuffixHash: true

secretGenerator:
- name: sitecore-dcrm-connection-strings
files:
- sitecore-dcrm.txt
- sitecore-data-exchange-staging.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
user id=[user-id];password=[password];data source=[data-source];database=[database]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AuthType=Office365;Url=[dynamics-crm-url];Username=[username];Password=[password]
10 changes: 10 additions & 0 deletions k8s/dcrm/8.0/ltsc2022/overrides/xp1/init/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../../xp1/init

images:
- name: scr.sitecore.com/sxp/sitecore-xp1-mssql-init
newName: "{registry}/sitecore-dcrm-xp1-mssql-init"
newTag: tag
22 changes: 22 additions & 0 deletions k8s/dcrm/8.0/ltsc2022/overrides/xp1/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../xp1

images:
- name: scr.sitecore.com/sxp/sitecore-xp1-cm
newName: "{registry}/sitecore-dcrm-xp1-cm"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xp1-xdbcollection
newName: "{registry}/sitecore-dcrm-xp1-xdbcollection"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xp1-xdbsearch
newName: "{registry}/sitecore-dcrm-xp1-xdbsearch"
newTag: tag
- name: scr.sitecore.com/sxp/sitecore-xp1-xdbsearchworker
newName: "{registry}/sitecore-dcrm-xp1-xdbsearchworker"
newTag: tag

patchesStrategicMerge:
- patch-cm.dcrm.yaml
28 changes: 28 additions & 0 deletions k8s/dcrm/8.0/ltsc2022/overrides/xp1/patch-cm.dcrm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cm
spec:
selector:
matchLabels:
app: cm
template:
metadata:
labels:
app: cm
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- name: sitecore-xp1-cm
env:
- name: Sitecore_ConnectionStrings_DCRM
valueFrom:
secretKeyRef:
name: sitecore-dcrm-connection-strings
key: sitecore-dcrm.txt
- name: Sitecore_ConnectionStrings_Sitecore.DataExchange.Staging
valueFrom:
secretKeyRef:
name: sitecore-dcrm-connection-strings
key: sitecore-data-exchange-staging.txt
14 changes: 14 additions & 0 deletions k8s/dcrm/8.0/ltsc2022/overrides/xp1/secrets/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

bases:
- ../../../xp1/secrets

generatorOptions:
disableNameSuffixHash: true

secretGenerator:
- name: sitecore-dcrm-connection-strings
files:
- sitecore-dcrm.txt
- sitecore-data-exchange-staging.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
user id=[user-id];password=[password];data source=[data-source];database=[database]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AuthType=Office365;Url=[dynamics-crm-url];Username=[username];Password=[password]

0 comments on commit 7c1c725

Please sign in to comment.