carbonblack / cbc-syslog

Syslog Connector for the Carbon Black Cloud
MIT License
28 stars 10 forks source link

No such file or directory #53

Closed cru-Luis-Rodriguez closed 1 year ago

cru-Luis-Rodriguez commented 4 years ago

Hello,

I'm trying to understand the CMD line. Should there be an executable in the path?

https://github.com/carbonblack/cbc-syslog/blob/97e4014617d279a836e5a6ed10dda1020686fb08/docker/Dockerfile#L40

Running the build container as described sudo docker container run -it <containerId> /bin/bash and checking the directory executed on the CMD I only find the store directory that is created on the Dockerfile. https://github.com/carbonblack/cbc-syslog/blob/97e4014617d279a836e5a6ed10dda1020686fb08/docker/Dockerfile#L33

Should the command be this instead: CMD ["cbc-syslog", "--config-file", "/etc/cb/integrations/cbc-syslog/cbc-syslog.conf", "--log-file", "/dev/stdout"] ? I ask because on line https://github.com/carbonblack/cbc-syslog/blob/97e4014617d279a836e5a6ed10dda1020686fb08/docker/Dockerfile#L37 it copies the files from the build image that includes the cbc-syslogs executable into /usr/bin. I'm trying to get this to work on docker, but I get the No such file or directory message.

Regards,

avanbrunt-cb commented 1 year ago

Docker support being rebuilt with CBC Syslog 2.0