-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
I tried to run
This is not a problem of this docker image but generally a problem of docker for those who are on a VPN. Im wondering is this is just me and if this can be worked around to avoid potential friction during the hackathon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gw 👍
Thanks for reporting the issue, let me take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gw 🚀
Can you try if this solution works for you? rust-lang/cargo#6513 (comment) |
Thanks, I will look into the network problem. Another unrelated problem: if there are already some artefacts from a previous
this can be solved if we explicitely copy only the files that we need |
Sadly, I got the same error even after I modified the first part of the Dockerfile to:
|
Ah in the Dockerfile in this PR, we are already only copying into the final docker image the files we need, i.e. default config files and the compiled binary, and nothing else — am using the "builder runner" pattern. The image generated in my machine has been in the order of 100-150MB, is your final image size much bigger in subsequent runs? EDITED: Oh I think you're referring to the |
I tried with this modified Dockerfile, and in my machine I think cargo somehow is not reading from FROM rust:bookworm AS builder
WORKDIR /usr/src/notary-server
COPY . .
RUN mkdir .cargo
RUN echo "[net]\ngit-fetch-with-cli = true\n" > .cargo/config.toml
RUN cargo install --path . |
Tried with the update you suggested, I still get an error. It is more descriptive this time
|
Sorry for the noise, I mistakenly assumed those files were being copied. The culprit was another unrelated folder inside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 comment on CI, otherwise lgtm 👍
7becad2
to
ffa2de2
Compare
For the record this has been solved by doing what's mentioned here |
#8