carbonblack/cbc-syslog

No such file or directory

cru-Luis-Rodriguez opened this issue · 1 comments

Hello,

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

CMD ["/usr/share/cb/integrations/cbc-syslog/cbc-syslog", "--config-file", "/etc/cb/integrations/cbc-syslog/cbc-syslog.conf", "--log-file", "/dev/stdout"]

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.

RUN mkdir -p /usr/share/cb/integrations/cbc-syslog/store

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

COPY --from=build /root/build-root /
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,

Docker support being rebuilt with CBC Syslog 2.0