Fix:kafka package not found by kafka package url

INFO:kolla.common.utils.kafka:Step 9/12 : RUN curl -sSL -o /tmp/kafka.tgz ${kafka_url}     && echo "${kafka_pkg_sha512sum} /tmp/kafka.tgz" | sha512sum -c     && tar --strip 1 -xvf /tmp/kafka.tgz -C /opt/kafka     && rm -f /tmp/kafka.tgz
INFO:kolla.common.utils.kafka: ---> Running in 2b751bf5c975
INFO:kolla.common.utils.kafka:curl (http://apache.osuosl.org/kafka/1.0.2/kafka_2.12-1.0.2.tgz): response: 404, time: 0.198, size: 297
INFO:kolla.common.utils.kafka:/tmp/kafka.tgz: FAILED
INFO:kolla.common.utils.kafka:[91msha512sum: WARNING: 1 computed
checksum did NOT match

Closes-bug: #1822030
Change-Id: Ib9a1bc5c0a69f7780e600404601ae875561450cd
This commit is contained in:
白永君 2019-03-28 12:07:45 +08:00 committed by Mark Goddard
parent 09f37541d8
commit 8dfc0ae0d9

View File

@ -22,7 +22,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block kafka_version %} {% block kafka_version %}
ENV kafka_version=1.0.2 ENV kafka_version=1.0.2
ENV kafka_scala_version=2.12 ENV kafka_scala_version=2.12
ENV kafka_url=http://apache.osuosl.org/kafka/${kafka_version}/kafka_${kafka_scala_version}-${kafka_version}.tgz ENV kafka_url=https://archive.apache.org/dist/kafka/${kafka_version}/kafka_${kafka_scala_version}-${kafka_version}.tgz
ENV kafka_pkg_sha512sum=4cbcdaf8ccc4efe3d1b6275f3f2c32cf8f2f1a62104b5dd0bd9e2974160ab89d85a6e1791af8b948a413b99ed696b06ea9d4299b27ea63c3f7318dabf5761144 ENV kafka_pkg_sha512sum=4cbcdaf8ccc4efe3d1b6275f3f2c32cf8f2f1a62104b5dd0bd9e2974160ab89d85a6e1791af8b948a413b99ed696b06ea9d4299b27ea63c3f7318dabf5761144
{% endblock %} {% endblock %}