Skip to content
Snippets Groups Projects
Commit 44aeaa75 authored by lavado's avatar lavado
Browse files

Merge branch 'snmp_package2' into 'master'

fix(snmp): using alpine instead of busybox to run command

See merge request !47
parents 635b5ff0 b66d70f1
No related branches found
No related tags found
1 merge request!47fix(snmp): using alpine instead of busybox to run command
......@@ -16,7 +16,7 @@ spec:
spec:
initContainers:
- name: cleanup
image: busybox:1.28
image: "alpine:latest"
command: ['sh', '-c', 'rm -f /etc/snmp_exporter/generator.yml']
volumeMounts:
- name: config-volume
......
......@@ -53,9 +53,7 @@ class VnfEE:
commands = ("cp /app/vnf/generator/generator.yml ./",
"snmp_generator generate --output-path=/etc/snmp_exporter/snmp.yml",
"touch /etc/snmp_exporter/generator.yml",
"chattr -i /etc/snmp_exporter/generator.yml",
"chmod 777 /etc/snmp_exporter/generator.yml")
"touch /etc/snmp_exporter/generator.yml")
for command in commands:
return_code, stdout, stderr = await util_ee.local_async_exec(command)
if return_code != 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment