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
Docker build fails because opsenssl #2185
Comments
Can you include all of the error output? How is OpenSSL installed in the container? |
This is the full output
ERROR: failed to solve: process "/bin/sh -c xx-cargo build --locked --release --target-dir ./target && cp ./target/$(xx-cargo --print-target-triple)/release/$APP_NAME /bin/server && xx-verify /bin/server" did not complete successfully: exit code: 101` |
You probably need o install perl in the container. |
Try adding |
I tried this and it still could not build openssl |
This managed to configure openssl butstill threw an error when building its dependencies. |
You need to share more context. Simplify what you're trying to do, ignore the cache mounts, ignore the cross-platform building with
Do you actually want to build OpenSSL? If you do, identify what other packages you're missing and add them until the failure goes away. Otherwise try figure out why it's trying to build OpenSSL, perhaps you just need to use |
on my Mac m1 I was having troubles with |
I am trying to build a docker image but keep getting the same error despite changing openssl versions.
5 error: failed to run custom build command for openssl-sys v0.9.100 Caused by: process didn't exit successfully:
/app/./target/release/build/openssl-sys-ad9c51fb308547bd/build-script-main(exit status: 101)
output directory before the cache mounted /app/target is unmounted.
RUN --mount=type=bind,source=src,target=src
--mount=type=bind,source=Cargo.toml,target=Cargo.toml
--mount=type=bind,source=Cargo.lock,target=Cargo.lock
--mount=type=cache,target=/app/target/,id=rust-cache-${APP_NAME}-${TARGETPLATFORM}
--mount=type=cache,target=/usr/local/cargo/git/db
--mount=type=cache,target=/usr/local/cargo/registry/
xx-cargo build --locked --release --target-dir ./target &&
cp ./target/$(xx-cargo --print-target-triple)/release/$APP_NAME /bin/server &&
xx-verify /bin/server `
ERROR: failed to solve: process "/bin/sh -c xx-cargo build --locked --release --target-dir ./target && cp ./target/$(xx-cargo --print-target-triple)/release/$APP_NAME /bin/server && xx-verify /bin/server" did not complete successfully: exit code: 101
I have configured all openssl deps including explicitly exporting is dir
The text was updated successfully, but these errors were encountered: