mqttwarn icon indicating copy to clipboard operation
mqttwarn copied to clipboard

Bring ALL dependency packages to Docker multi-platform images

Open amotl opened this issue 4 years ago • 0 comments

State of the onion

At #509, I had to exclude some dependency packages for building mqttwarn-full images for ARM platforms because that would need running a compiler. The background is that for those packages, there are no binary wheels on PyPI for the respective platforms. Currently, the Docker base image we are using does not include a compiler toolchain.

https://github.com/jpmens/mqttwarn/blob/2ef6d546987dfa90ebf379fa8934fb6d6513fbc6/setup.py#L120-L133

Outlook

We can tackle that with a separate patch which should modify the Dockerfile to be multi-stage, the first stage preparing a build environment and installing mqttwarn and the second stage copying over the compiled libraries in order to publish images without the compiler toolchain included in order to keep their sizes reasonable.

Originally posted by @amotl in https://github.com/jpmens/mqttwarn/issues/509#issuecomment-859349540

amotl avatar Jun 11 '21 23:06 amotl