Commit Graph

27 Commits

Author SHA1 Message Date
Michal Nasiadka 52a53927f5 Remove monasca, kafka, storm and zookeeper.
Monasca, kafka, storm and zookeeper have been removed in kolla-ansible [1],[2].

[1]: https://review.opendev.org/c/openstack/kolla-ansible/+/861392
[2]: https://review.opendev.org/c/openstack/kolla-ansible/+/865029

Change-Id: I0958a9353bc4585c4f65a1d316328a0e80b0b8b7
2022-12-06 12:58:10 +00:00
Tim Shearer 1d96a2bbe1 Adjust permissions on _extend_start files.
Explicitly set the permissions on the kolla-toolbox kolla_extend_start
file. Also, since all extend_start files are sourced rather than
executed, the executable bits are now cleared throughout the project.

Change-Id: I5c2deb4a2e33575d57c852089f856a9acc6818d0
2022-04-11 17:22:24 +02:00
Marcin Juszkiewicz a1510870e8 drop infra_image_prefix
We have one install_type only now so that infra stuff is not needed
anymore.

Change-Id: I60d50ba7699d46d001eaef365fb84b0ce8e9b262
2022-04-11 06:22:21 +00:00
Maksim Malchuk 83efe32546 Unify curl use (customisation options)
This change adds and unifies an ability to override hardcoded URLs for
air-gapped environments via the usual blocks mechanism. Also, this
change replaces ENV with ARG instruction for the variables used only
in building images, and uses bash variable expansion where it possible.

This change is a continuation of the I46b77978926fc2b578a68d1aaa944b2198af0685

Change-Id: I1fbad333b1bc95484e6f4c5145d5936a0e2db84f
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2022-03-11 15:58:05 +03:00
Michał Nasiadka 22c32a30e6 Unify curl options
Currently we use couple of curl options throughout Dockerfiles, this change
adds all common options to curlrc (-sSLf) and removes usage of those in
Dockerfiles.

Change-Id: I46b77978926fc2b578a68d1aaa944b2198af0685
2020-12-02 18:48:22 +01:00
Marcin Juszkiewicz 90adc2b851 introduce 'infra_image_prefix' for infra images
Defaults to 'image_prefix' for now but shows which images gets their
names changed soon.

Change-Id: I0608e8f62f28d6667b4c8753c47553e4cbf75503
2020-07-09 23:31:42 +02:00
Christian Berendt 861f55fbfd Add block labels to all Dockerfiles
Change-Id: I9692dda817ef134d647247431565e1b58cf9da41
2020-03-01 17:25:58 +00:00
Doug Szumski d2a17c0097 Upgrade Kafka to 2.0.1 release
We upgrade to 2.0.1 and not a newer version because Monasca currently
supports 2.0.1.

This also brings the Kafka release inline with the current Zookeeper
version for the 5.0.x Confluent platform [1].

[1] https://docs.confluent.io/current/installation/versions-interoperability.html

Change-Id: I835d10bfe3ac0ea7382387a27b222849afb84aa3
2020-01-14 14:12:02 +00:00
Marcin Juszkiewicz 307ae61454 There is no Java 8 in Debian 'buster'
Debian 'buster' release contains Java 11 only. So kafka, logstash, storm
images needed adjustments.

Change-Id: I9f1e809d0ef1955b832dd384912f880088426306
2019-06-17 14:39:56 +00:00
Erol Guzoglu cb8fa69407 Pin kafka java version to 8 on ubuntu
Ubuntu default-jre-headless is not working with kafka

Change-Id: Ic6ab66128efa931277516e0cf5848a816ca676ad
Closes-Bug: #1824847
2019-04-16 11:32:11 +03:00
白永君 8dfc0ae0d9 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
2019-03-28 08:32:24 +00:00
Doug Szumski fd78c1ff11 Revert "Update kafka version to 2.1.0"
This reverts commit e9f7fc33c5.

Change-Id: I655841e3db4caddbc5dfd2ace8bffad468265c08
2019-01-29 14:06:44 +00:00
Thomas Bechtold e9f7fc33c5 Update kafka version to 2.1.0
This is inline with the change[1] in monasca which also updates to
that version.

[1] https://review.openstack.org/#/c/629876/

Change-Id: I2f3038ac93271bb623528308e94f335478cbe23d
2019-01-19 07:37:04 +01:00
Alex Schultz ae1322ec10 Use base_package_type
This change updates the docker files to use base_package_type instead
of doing specific distro checks for the rhel/deb generic cases. The
base_distro is still available and is used when a specific distro needs
a customization but if the differences are purely rpm vs deb, then the
base_package_type can be used.

Change-Id: I8d720bb185df65a0178061ccf20b1ab2265da2c5
2019-01-17 08:23:41 -07:00
Eduardo Gonzalez b2f8605f3b Fix kafka build
Kafka version 1.0.1 is not in repositories
anymore, need to update to 1.0.2

Change-Id: I27ee1240a79223f2d2fcc7d311c8ac83126ca092
2018-11-21 09:16:29 +01:00
Martin André 11dcd27994 Switch to headless jre
Prefer the headless JRE wherever possible. This may be becessary to
adjust the override files for the customization of the containers where
java is installed.

Change-Id: I3479ac9e74aa9e860cf01db20bd7ab5f5cfc9c1a
2018-07-10 16:30:56 +02:00
Doug Szumski af6c19203f Support configuration of Kafka package
This change makes it easier to configure the Kafka package. This
is useful, for example, when installing Monasca which currently
requires an older version of Kafka than that installed here.

The change also fixes an issue with circular symlinks, updates
kafka and verifies the sha512sum of the package. The sha512sum
was taken from here:

https://www.apache.org/dist/kafka/1.0.1/kafka_2.12-1.0.1.tgz.sha512

Change-Id: I79a5a32ee8e5edd915fa88fbc00d0d4ac08b8ebd
Partially-Implements: blueprint monasca-roles
2018-03-12 12:32:40 +00:00
Andrew Smith 4157165529 Enable kafka for rhel distro derivatives
Missing download of jre via openjdk package

Change-Id: Icce1a92f9707b435e1d4a4a75453e21b541b2a22
2018-01-25 14:51:34 -05:00
Andrew Smith add07bd7de Bump kafka version to 1.0.0
Apache Kafka has gone to 1.0 release. Bump version from 0.11.0.2
to 1.0.0.

Change-Id: I1ea1aa021824981998f1d2fec111cfeeda1823d2
2018-01-24 11:07:51 -05:00
Jeffrey Zhang d6b1cee0fe Bump kafka version to 0.11.0.2
Bump kafka version from 0.11.0.1 to 0.11.0.2. The old version is removed
on the download site already.

Change-Id: Ia6638313a060e52246ebbf833a9af1efc78907cf
Closes-Bug: #1733188
2017-11-20 13:58:49 +00:00
yanpeifei 58559e27c5 update kafka version.
The kafka version is not up to date,when i deploy kafka,today.

Change-Id: I19e914d3d64443616cf83e83ce1a13d52b7d81a1
2017-11-02 09:23:21 +00:00
Jawon Choo 31259fa595 Override image's meta info.
centos based images have wrong label info,
these changes fix own image's name and build-date.

Change-Id: I1d13f8f386c8db12b5fbe5f8ecbbf9e3fbb4ba1c
Closes-Bug: #1680341
2017-05-03 11:08:17 +09:00
Chen 8c463a47a9 Use LABEL instead of MAINTAINER (deprecated) in all Dockerfile.j2
Use LABEL instruction instead of MAINTAINER (deprecated) instruc-
tion as suggested by Docker's official dockerfile guide.
docs.docker.com/engine/reference/builder/#maintainer-deprecated

Closes-Bug: #1683652

Change-Id: Ie87a1ddf31aefcd0b623fd2837d78de420e76898
2017-04-20 16:50:05 +09:00
Marcin Juszkiewicz 69fef5cd59 debian: enable all images enabled for Ubuntu
Debian support is not maintained in Kolla so it got a bit behind Ubuntu
one. This changeset enables Debian for all images. Jessie (even with
backports) may be too old for some images though.

Also unify distro check to ['debian', 'ubuntu'] to keep alphabetical order
like it is done for RPM distributions.

Partially-Implements: blueprint multiarch-and-arm64-containers

Change-Id: I056233fbfa277e0e2360c07c3f80d9558c554357
2017-04-04 22:48:18 +02:00
Sam Yaple 58eee09c15 use static uid/gid in images
This centralizes all user and group creation into a single source. This
will fix any current and furture uid/gid mismatches (such as with
nova-libvirt).

In the process, we also unify users between the distros in a standard
way. The users in the following containers change from thier defaults:

Ubuntu: _chrony user is now chrony
Ubuntu: memcache user is now memcached
All: qemu user is used for ownership and socket permissions

All uid and gid numbers are customizable via kolla-build.conf

Co-Authored-By: Kris Lindgren <klindgren@godaddy.com>
Change-Id: I120f26ab0683dc87d69727c3df8d4707e52a4543
Partially-Implements: blueprint static-uid-gid
2017-01-17 09:02:21 -03:00
Martin André 806a155f8e Download kafka binaries from within the container
By pulling kafka tgz this way rather than downloading it via the source
build mechanism, we can offer binary builds for kafka image.

Change-Id: I852049a4f86dba7181db25f149205add187071ab
2016-12-19 17:04:34 +01:00
Sam Yaple 259266ceb8 Add kafka image
Change-Id: I6c9b8f8b0cf254c2c3333ca789c5da364c7d5c73
Partially-Implements: blueprint monasca-containers
2016-12-12 16:13:29 +00:00