feat: add dbus-dev to image
This commit is contained in:
parent
26c46227e6
commit
3f87d011e7
2 changed files with 26 additions and 1 deletions
|
@ -39,6 +39,7 @@ RUN apk add --no-cache \
|
||||||
libssl3 \
|
libssl3 \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
perl \
|
perl \
|
||||||
|
dbus-dev \
|
||||||
git
|
git
|
||||||
|
|
||||||
# clang \
|
# clang \
|
||||||
|
|
26
README.md
26
README.md
|
@ -42,6 +42,7 @@ The available toolchain in the image are:
|
||||||
- cargo-chef
|
- cargo-chef
|
||||||
- cargo-hack
|
- cargo-hack
|
||||||
- release-plz
|
- release-plz
|
||||||
|
- dbus-dev
|
||||||
- perl
|
- perl
|
||||||
|
|
||||||
### Scripts
|
### Scripts
|
||||||
|
@ -61,10 +62,33 @@ steps:
|
||||||
|
|
||||||
## Caveats
|
## Caveats
|
||||||
|
|
||||||
### native-tls
|
### openssl
|
||||||
|
|
||||||
|
The alpine linux install doesn't build with this dependency. You can either compile `native-tls` with the `vendored` feature, or not use `openssl`.
|
||||||
|
|
||||||
|
#### vendoered native-tls
|
||||||
|
|
||||||
This crate *must* use the `vendored` feature in order to compile in the Alpine Linux image.
|
This crate *must* use the `vendored` feature in order to compile in the Alpine Linux image.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
native-tls = { version = "0.2", features = ["vendored"] }
|
native-tls = { version = "0.2", features = ["vendored"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Don't use `openssl`
|
||||||
|
|
||||||
|
Check that none of your dependencies require `openssl`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo tree --edges normal -i openssl
|
||||||
|
```
|
||||||
|
|
||||||
|
This will list the tree of dependencies that are bringing in `openssl`.
|
||||||
|
|
||||||
|
If you do need ssl/tls, try using `rustls`. e.g.
|
||||||
|
|
||||||
|
```toml
|
||||||
|
reqwest = { version = "0.12", default-features = false, features = [
|
||||||
|
"json",
|
||||||
|
"rustls-tls",
|
||||||
|
] }
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue