[Fuego] Execute an utility in the host system from within the container
Dhinakar Kalyanasundaram <[email protected]>
| Newsgroups | dev.linux.lists.fuego |
|---|---|
| Message-ID | <20190930140815epcms5p5f35d25ab7c265974af9a78a35de5ba8c@epcms5p5> |
Dear Fuego Users, I tried to execute the below command via a Jenkins job created in fuego dashboard. Since Jenkins is running inside the container, I guess it is not able to access the host environment, unoconv execution fails. Please check the below jenkins job content below. ….. cd /fuego-rw/logs/Extract sh unoconv.sh …… Log output is as below. ….. ….. + cd /fuego-rw/logs/Extract + sh unoconv.sh Pseudo-terminal will not be allocated because stdin is not a terminal. unoconv: RuntimeException during import phase: Office probably died. Unsupported URL <MergedReport.xlsx>: "type detection failed" Build step 'Execute shell' marked build as failure Finished: FAILURE **************************************************** The content of unoconv.sh file is given below: #!/bin/bash sshpass -p test@2019 ssh -o StrictHostKeyChecking=no [email protected] -t "cd /home/dhinakar/piper/fuego/fuego-rw/logs/Extract/htmlReports/; unoconv --listener; unoconv -f html MergedReport.xlsx" Basically I want to process the raw log generated by fuego (kept under /fuego-rw/logs/Extract) and convert them into html report via python script. unoconv here is installed on host system. What is the best way to invoke an utility or application running on host system from within the fuego container? Regards, Dhinakar
201602111742151_N3WZA6X7.png
(image/png, 32.7 KB) - not displayed