stx tool: lat-tool: Mount host urandom device to stx-lat-tool docker

Map host /dev/urandom to the /dev/random of stx-lat-tool container
as the entropy seed. Make sure there is enough entropy seeds when
we build the iso image, so that we can avoid the failure of during
building image.

Story: 2008862
Task: 44383

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Change-Id: Idbeb764965c37f8cc33f5904c3ffecccd2b799ca
This commit is contained in:
Zhixiong Chi
2022-01-29 17:43:51 +08:00
parent 09ec170ed9
commit 17d69346ac
2 changed files with 11 additions and 1 deletions

View File

@@ -36,7 +36,9 @@ spec:
tty: true tty: true
volumeMounts: volumeMounts:
- name: {{ .Values.volumes.name }} - name: {{ .Values.volumes.name }}
mountPath: {{ .Values.volumeMounts.mountPath}} mountPath: {{ .Values.volumeMounts.mountPath }}
- name: {{ .Values.volumes.entropyname }}
mountPath: {{ .Values.volumeMounts.entropymountPath }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
@@ -45,6 +47,9 @@ spec:
- name: {{ .Values.volumes.name }} - name: {{ .Values.volumes.name }}
hostPath: hostPath:
path: {{ .Values.volumes.hostPath.path }} path: {{ .Values.volumes.hostPath.path }}
- name: {{ .Values.volumes.entropyname }}
hostPath:
path: {{ .Values.volumes.entropyhostPath.path }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:

View File

@@ -14,11 +14,16 @@ image:
volumeMounts: volumeMounts:
name: latd-shared-workspace name: latd-shared-workspace
mountPath: /localdisk mountPath: /localdisk
entropyname: entropy-device
entropymountPath: /dev/random
volumes: volumes:
name: latd-shared-workspace name: latd-shared-workspace
hostPath: hostPath:
path: /workspace/localdisk path: /workspace/localdisk
entropyname: entropydevice
entropyhostPath:
path: /dev/urandom
imagePullSecrets: [] imagePullSecrets: []
nameOverride: "" nameOverride: ""