Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required Socket Files Ignored #3101

Open
ginadi011 opened this issue Apr 5, 2024 · 0 comments
Open

Required Socket Files Ignored #3101

ginadi011 opened this issue Apr 5, 2024 · 0 comments
Labels
area/filesystems For all bugs related to kaniko container filesystems (mounting issues etc) differs-from-docker issue/missing-files priority/p1 Basic need feature compatibility with docker build. we should be working on this next. works-with-docker

Comments

@ginadi011
Copy link

Actual behavior
I am building a Docker image which has MIMEDefang and Postfix, both of which require Unix socket to run as expected. Kaniko is ignoring the socket files which prevent the applications from running as expected.

Expected behavior
Required socket files are added into the Docker image after image is built

To Reproduce
Steps to reproduce the behavior:

  1. Build image

Additional Information

  • Dockerfile
    ` FROM

RUN yum -y install mimedefang

RUN yum install -y postfix

RUN ./usr/bin/mimedefang-multiplexor -m 4 -x 10 -y 0 -U defang -l -d -s /var/spool/MIMEDefang/mimedefang-multiplexor.sock
RUN ./usr/bin/mimedefang -m /var/spool/MIMEDefang/mimedefang-multiplexor.sock -y -U defang -q -T -p inet:10997
RUN ./usr/bin/mimedefang-multiplexor -U defang -o /var/spool/MIMEDefang/mimedefang-multiplexor.lock

RUN ./usr/bin/mimedefang -P /run/mimedefang.pid -o /var/spool/MIMEDefang/mimedefang.lock -m /var/spool/MIMEDefang/mimedefang-multiplexor.sock -y -R -1 -U defang -T -G -q -p /var/spool/MIMEDefang/mimedefang.sock

RUN ./usr/libexec/mimedefang-wrapper -U defang start
RUN ./usr/libexec/mimedefang-wrapper -U defang multiplexor

CMD ["postfix start-fg"]`

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
  • - [ No]
Please check if the build works in docker but not in kaniko
  • - [ Yes]
Please check if this error is seen when you use --cache flag
  • - [Yes ]
Please check if your dockerfile is a multistage dockerfile
  • - [No ]
@aaron-prindle aaron-prindle added differs-from-docker works-with-docker issue/missing-files area/filesystems For all bugs related to kaniko container filesystems (mounting issues etc) priority/p1 Basic need feature compatibility with docker build. we should be working on this next. labels Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/filesystems For all bugs related to kaniko container filesystems (mounting issues etc) differs-from-docker issue/missing-files priority/p1 Basic need feature compatibility with docker build. we should be working on this next. works-with-docker
Projects
None yet
Development

No branches or pull requests

2 participants