微吼云上線多路互動(dòng)直播服務(wù) 加速多場景互動(dòng)直播落地
686
2025-04-02
問題
productLayout2Page.jsp和product detail page的綁定關(guān)系在Hybris WCMS cockpit什么地方能夠找到
點(diǎn)擊了product list里的product image,會(huì)跳轉(zhuǎn)到detail page:
target jsp的url在這個(gè)方法里計(jì)算出來:
算出來的結(jié)果:
也就是這個(gè)文件:
問題
productLayout2Page.jsp和product detail page的綁定關(guān)系在WCMS cockpit什么地方能夠找到?
這兩天內(nèi)部transfer忙著交接,沒有及時(shí)回復(fù)。
productLayout2Page.jsp和product detail page的綁定關(guān)系是在以下的impex里面插入的
INSERT_UPDATE PageTemplate;$contentCV[unique=true];uid[unique=true];name;frontendTemplateName;restrictedPageTypes(code);active[default=true] ;;ProductDetailsPageTemplate;Product Details Page Template;product/productLayout2Page;ProductPage
依據(jù)個(gè)人經(jīng)驗(yàn),wcms主要還是要領(lǐng)會(huì)思路,不要迷失在具體的代碼里,因?yàn)楫嬅媸亲詣?dòng)生成的。
WCMS–Page template–componentslot–component–cmsproductlistcomponent.jsp–productListerItem.tag
確實(shí),這里注釋寫的很清楚。
登錄Google Cloud platform,創(chuàng)建一個(gè)新的Kubernetes Cluster:
該集群的node個(gè)數(shù)選擇為1,從Machine type下拉列表里選擇CPU配置:
展開Advanced Edit,選擇該Kubernetes集群安裝所在的操作系統(tǒng)的鏡像類型:
選擇ubuntu,磁盤類型選擇SSD:
點(diǎn)擊Create,得到一個(gè)Kubernetes cluster:
The images for these containers will be pulled from the public Docker repository and store. The containers will be connected to each other and have some ports exposed to the internet.
Kubernetes集群創(chuàng)建好之后,點(diǎn)擊Connect,
即可在Google Cloud Shell里用kubectl命令行訪問這個(gè)Kubernetes cluster:
創(chuàng)建一個(gè)新的secret:
kubectl create secret docker-registry docker-secret --docker-server=https://index.docker.io/v1/ --docker-username=jerry password=jerrywang --docker-email=jerry.wang@gmail.com
在Google Cloud platform的Kubernetes cluster上,新建一個(gè)hxe.yaml文件:
將如下內(nèi)容拷貝進(jìn)yaml文件:
kind: ConfigMap apiVersion: v1 metadata: creationTimestamp: 2018-01-18T19:14:38Z name: hxe-pass data: password.json: |+ {"master_password" : "HXEHana1"} --- kind: PersistentVolume apiVersion: v1 metadata: name: persistent-vol-hxe labels: type: local spec: storageClassName: manual capacity: storage: 150Gi accessModes: - ReadWriteOnce hostPath: path: "/data/hxe_pv" --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: hxe-pvc spec: storageClassName: manual accessModes: - ReadWriteOnce resources: requests: storage: 50Gi --- apiVersion: apps/v1 kind: Deployment metadata: name: hxe labels: name: hxe spec: selector: matchLabels: run: hxe app: hxe role: master tier: backend replicas: 1 template: metadata: labels: run: hxe app: hxe role: master tier: backend spec: initContainers: - name: install image: busybox command: [ 'sh', '-c', 'chown 12000:79 /hana/mounts' ] volumeMounts: - name: hxe-data mountPath: /hana/mounts volumes: - name: hxe-data persistentVolumeClaim: claimName: hxe-pvc - name: hxe-config configMap: name: hxe-pass imagePullSecrets: - name: docker-secret containers: - name: hxe-container image: "store/saplabs/hanaexpress:2.00.033.00.20180925.2" ports: - containerPort: 39013 name: port1 - containerPort: 39015 name: port2 - containerPort: 39017 name: port3 - containerPort: 8090 name: port4 - containerPort: 39041 name: port5 - containerPort: 59013 name: port6 args: [ "--agree-to-sap-license", "--dont-check-system", "--passwords-url", "file:///hana/hxeconfig/password.json" ] volumeMounts: - name: hxe-data mountPath: /hana/mounts - name: hxe-config mountPath: /hana/hxeconfig - name: sqlpad-container image: "sqlpad/sqlpad" ports: - containerPort: 3000 --- apiVersion: v1 kind: Service metadata: name: hxe-connect labels: app: hxe spec: type: LoadBalancer ports: - port: 39013 targetPort: 39013 name: port1 - port: 39015 targetPort: 39015 name: port2 - port: 39017 targetPort: 39017 name: port3 - port: 39041 targetPort: 39041 name: port5 selector: app: hxe --- apiVersion: v1 kind: Service metadata: name: sqlpad labels: app: hxe spec: type: LoadBalancer ports: - port: 3000 targetPort: 3000 protocol: TCP name: sqlpad selector: app: hxe
第77行指定了HANA express對(duì)應(yīng)的容器鏡像文件:
“store/saplabs/hanaexpress:2.00.033.00.20180925.2”
使用命令行創(chuàng)建資源:
kubectl create -f hxe.yaml:
創(chuàng)建成功,使用命令行kubectl describe pods查看成功創(chuàng)建的資源:
使用命令行查看數(shù)據(jù)庫是否成功啟動(dòng):
kubectl logs deployment/hxe -c hxe-container
看到startup finished的消息,說明啟動(dòng)成功:
使用命令行進(jìn)入pod內(nèi)部,得到shell:
kubectl exec -it <
打開SQL console:
hdbsql -i 90 -d systemdb -u SYSTEM -p HXEHana1
JSP Kubernetes
版權(quán)聲明:本文內(nèi)容由網(wǎng)絡(luò)用戶投稿,版權(quán)歸原作者所有,本站不擁有其著作權(quán),亦不承擔(dān)相應(yīng)法律責(zé)任。如果您發(fā)現(xiàn)本站中有涉嫌抄襲或描述失實(shí)的內(nèi)容,請(qǐng)聯(lián)系我們jiasou666@gmail.com 處理,核實(shí)后本網(wǎng)站將在24小時(shí)內(nèi)刪除侵權(quán)內(nèi)容。
版權(quán)聲明:本文內(nèi)容由網(wǎng)絡(luò)用戶投稿,版權(quán)歸原作者所有,本站不擁有其著作權(quán),亦不承擔(dān)相應(yīng)法律責(zé)任。如果您發(fā)現(xiàn)本站中有涉嫌抄襲或描述失實(shí)的內(nèi)容,請(qǐng)聯(lián)系我們jiasou666@gmail.com 處理,核實(shí)后本網(wǎng)站將在24小時(shí)內(nèi)刪除侵權(quán)內(nèi)容。