fix: Upgrade librdkafka
fix: libressl3.4 packages removed fix: publish docker image jobs added Change-Id: Ia8fccfb28b1c95d8ffdb8ca40fba9cc586e5ce7d (cherry picked from commit fe601fa51b0e5887f9557dab0765b4e415b418eb)
This commit is contained in:
parent
eb893ac429
commit
14a7767c04
@ -10,6 +10,7 @@
|
||||
voting: false
|
||||
- monasca-tempest-python3-cassandra
|
||||
- legacy-monasca-common-maven-build
|
||||
- build-monasca-common-docker-base-image
|
||||
gate:
|
||||
jobs:
|
||||
- monasca-tempest-python3-influxdb:
|
||||
@ -17,7 +18,11 @@
|
||||
- legacy-monasca-common-maven-build
|
||||
post:
|
||||
jobs:
|
||||
- publish-monasca-common-docker-base-image
|
||||
- legacy-monasca-common-localrepo-upload
|
||||
release:
|
||||
jobs:
|
||||
- publish-monasca-common-docker-base-image
|
||||
|
||||
- job:
|
||||
name: build-monasca-common-docker-base-image
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM python:3.8-alpine3.15
|
||||
FROM python:3.10-alpine3.19
|
||||
|
||||
COPY wait_for.sh kafka_wait_for_topics.py mysql_check.py /
|
||||
COPY ashrc /root/.ashrc
|
||||
@ -81,17 +81,15 @@ ONBUILD RUN \
|
||||
linux-headers \
|
||||
make \
|
||||
rust && \
|
||||
# For librdkafka bigger than v1.8.0 we need newer versions of some
|
||||
# For librdkafka bigger than v2.3.0 we need newer versions of some
|
||||
# libraries.
|
||||
apk add --no-cache --virtual .build-librdkafka \
|
||||
libressl3.4-libcrypto \
|
||||
libressl3.4-libssl \
|
||||
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
|
||||
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community && \
|
||||
# Install librdkafka from source code.
|
||||
apk add --no-cache curl bash && \
|
||||
curl https://codeload.github.com/edenhill/librdkafka/tar.gz/v1.8.0 | tar xzf - -C /tmp/ && \
|
||||
cd /tmp/librdkafka-1.8.0/ && \
|
||||
curl https://codeload.github.com/edenhill/librdkafka/tar.gz/v2.3.0 | tar xzf - -C /tmp/ && \
|
||||
cd /tmp/librdkafka-2.3.0/ && \
|
||||
./configure && \
|
||||
make && \
|
||||
make install && \
|
||||
|
@ -19,6 +19,7 @@ classifier =
|
||||
Programming Language :: Python :: 3.6
|
||||
Programming Language :: Python :: 3.7
|
||||
Programming Language :: Python :: 3.8
|
||||
Programming Language :: Python :: 3.10
|
||||
|
||||
[files]
|
||||
packages =
|
||||
|
12
tox.ini
12
tox.ini
@ -1,7 +1,8 @@
|
||||
[tox]
|
||||
envlist = py38,pep8,cover
|
||||
envlist = py310,pep8,cover
|
||||
minversion = 2.5
|
||||
skipsdist = True
|
||||
ignore_basepython_conflict = True
|
||||
|
||||
[testenv]
|
||||
basepython = python3
|
||||
@ -17,6 +18,9 @@ passenv = http_proxy
|
||||
whitelist_externals = bash
|
||||
find
|
||||
rm
|
||||
allowlist_externals = bash
|
||||
find
|
||||
rm
|
||||
install_command = pip install {opts} {packages}
|
||||
deps =
|
||||
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
||||
@ -34,14 +38,14 @@ commands =
|
||||
{[testenv]commands}
|
||||
stestr run --blacklist-file {env:BLACKLIST_FILE} {posargs}
|
||||
|
||||
[testenv:py38]
|
||||
basepython = python3.8
|
||||
[testenv:py310]
|
||||
basepython = python3.10
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
BLACKLIST_FILE={toxinidir}/test-blacklist-py3.txt
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
stestr run --blacklist-file {env:BLACKLIST_FILE} {posargs}
|
||||
stestr run --exclude-list {env:BLACKLIST_FILE} {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
setenv =
|
||||
|
Loading…
x
Reference in New Issue
Block a user