emqx / emqx-docker

An Open-Source, Cloud-Native, Distributed MQTT Message Broker for IoT.
Apache License 2.0
31 stars 13 forks source link

Published artifacts changed #10

Closed yosifkit closed 2 years ago

yosifkit commented 2 years ago

The amd64 artifact referenced in the Dockerfile has changed (without any version bump) and so the image fails to build. (The official images rebuild whenever the base image is updated to pull in security and package updates.) Assuming the new artifact is correct, it looks like the embedded sha256sum needs to be updated.

https://github.com/emqx/emqx-docker/blob/15a67ceb5bf2402bca50a7968c9703e7de8fe9da/4.4/Dockerfile#L8-L19

Failed build:

Step 5/13 : RUN set -eu;     arch=$(dpkg --print-architecture);     if [ ${arch} = "amd64" ]; then sha256="7f7305566b977ef64afd31fed5fa71f7e79a5a934bf792422ac03e4f12768b02"; fi;     if [ ${arch} = "arm64" ]; then sha256="34d3315c329de1d0fbf7419db1bff5007313f45de39e8be0ca5f04bad19f45a5"; fi;     ID="$(sed -n '/^ID=/p' /etc/os-release | sed -r 's/ID=(.*)/\1/g' | sed 's/\"//g')";     VERSION_ID="$(sed -n '/^VERSION_ID=/p' /etc/os-release | sed -r 's/VERSION_ID=(.*)/\1/g' | sed 's/\"//g')";     pkg="emqx-${EMQX_VERSION}-${OTP}-${ID}${VERSION_ID}-${arch}.zip";     curl -f -O -L https://www.emqx.com/en/downloads/broker/${EMQX_VERSION}/${pkg};     echo "$sha256 *$pkg" | sha256sum -c || exit 1;     unzip -q -d /opt $pkg;     ln -s /opt/emqx/bin/* /usr/local/bin/;     rm -rf $pkg
 ---> Running in e63dee74f885
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 34 43.3M   34 14.9M    0     0  11.2M      0  0:00:03  0:00:01  0:00:02 16.8M
 65 43.3M   65 28.2M    0     0  12.1M      0  0:00:03  0:00:02  0:00:01 14.9M
 76 43.3M   76 33.3M    0     0  10.0M      0  0:00:04  0:00:03  0:00:01 11.5M
 95 43.3M   95 41.4M    0     0  9815k      0  0:00:04  0:00:04 --:--:-- 10.6M
100 43.3M  100 43.3M    0     0  9742k      0  0:00:04  0:00:04 --:--:-- 10.5M
emqx-4.4.3-otp24.1.5-3-debian11-amd64.zip: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
zmstone commented 2 years ago

Hi @yosifkit Thank you for the report, we’ll update the checksum asap. The package has been rebuilt due to a pre-packed binary had an incompatible dependency (only centos though, but as a result of rebuild, all platforms had an update)