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

Service 'mitmproxy' failed to build : Build failed #27

Open
jdgregson opened this issue Jun 11, 2021 · 2 comments
Open

Service 'mitmproxy' failed to build : Build failed #27

jdgregson opened this issue Jun 11, 2021 · 2 comments

Comments

@jdgregson
Copy link

I started looking into Phishpond today and had an issue building the image in Docker for Windows.

The error was:

=> => extracting sha256:00eb45722879c184549e05dc998f20acdb8d1c628ffbbe1dfc68fab3c67002e5                                   0.1s
=> => extracting sha256:97bfbf48a93798d26ebd24e2ce38363db807ec1a1afb8fc852892c6716e60d1f                                   1.8s
=> => extracting sha256:5b8302d2fac67ebd00245c192f10f439ab8079104b0514f133f6e3352204a9c0                                   0.0s
=> [internal] load build context                                                                                           0.1s
=> => transferring context: 1.98kB                                                                                         0.0s
=> [2/5] RUN apk add bash vim                                                                                              5.1s
=> [3/5] RUN mkdir /home/mitmproxy/logs                                                                                    0.5s
=> ERROR [4/5] RUN chmod -R 777 /home/mitmproxy/.mitmproxy /home/mitmproxy/logs                                            0.4s
------
> [4/5] RUN chmod -R 777 /home/mitmproxy/.mitmproxy /home/mitmproxy/logs:
#7 0.376 chmod: /home/mitmproxy/.mitmproxy: No such file or directory
------
executor failed running [/bin/sh -c chmod -R 777 /home/mitmproxy/.mitmproxy /home/mitmproxy/logs]: exit code: 1
ERROR: Service 'mitmproxy' failed to build : Build failed

I was able to get the build working by adding the following line to phishpond/docker/mitmproxy/Dockerfile before line 5:

RUN mkdir /home/mitmproxy/.mitmproxy

Is there a reason this line isn't included? If not, I can submit a PR to fix this issue.

@jimwangzx
Copy link

The statement "RUN mkdir /home/mitmproxy/.mitmproxy" will cause problem in Linux

@bobbonomo
Copy link

bobbonomo commented Mar 12, 2023

Thanks to the extra RUN command I got this running. Was about to give up [female dog]in' that this does not work.

Doing much of this by hand now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants