Skip to content

Commit

Permalink
set initialize flag in configdb
Browse files Browse the repository at this point in the history
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
  • Loading branch information
Wataru Ishida committed Aug 29, 2018
1 parent 47c9a9b commit c62b5c2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmd/oopt/sonic.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ done']
volumeMounts:
- mountPath: /var/run/redis/
name: redis
securityContext:
privileged: true
- name: init-configdb
image: {{ .Image }}
imagePullPolicy: Never
Expand All @@ -89,8 +87,13 @@ done']
name: redis
- mountPath: /root/config
name: sonic-config
securityContext:
privileged: true
- name: init-configdb-done
image: redis
imagePullPolicy: Never
command: ['redis-cli', '-s', '/var/run/redis/redis.sock', '-n', '4', 'SET', 'CONFIG_DB_INITIALIZED', '1']
volumeMounts:
- mountPath: /var/run/redis/
name: redis
containers:
- name: syncd
image: {{ .Image }}
Expand Down

0 comments on commit c62b5c2

Please sign in to comment.