Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Vector in all product images to version 0.31.0 #429

Merged
merged 8 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 50 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,70 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Changed

- Bump ubi8-rust-builder toolchain to 1.71.0 ([#419]).
- BREAKING: Upgrade Vector in all product images to version 0.31.0. The
integration tests of the operators must be adapted because the metric
`processedEventsTotal` was replaced by `receivedEventsTotal` ([#429]).
- BREAKING: Use RPM instead of tar.gz for Vector. Because of that, the
location of the Vector executable changed, and the operator-rs version
0.45.0 is required ([#429]).

### Removed

- Remove unused environment variable `AIRFLOW_UID` from the Airflow
image ([#429]).

[#419]: https://github.com/stackabletech/docker-images/pull/419
[#429]: https://github.com/stackabletech/docker-images/pull/429

## [23.7.0] - 2023-07-14

## [23.4.0] - 2023-04-17

### Added

- Added labels for openshift requirements and licenses for all images ([#95]).
- Added `RELEASE` ARG for all images ([#95]).
- Package inotify-tools added ([#291]).
- Added krb5 image ([#338]).

### Changed

- Updated java base image to latest ubi8 tag 8.6-994 ([#249]).
- Updated all java-base images to stackable0.2.2 ([#250]).
- Updated all ubi8 base images to latest (8.6-994) ([#250]).
- Updated all internal images to rebuild their base images on demand ([#321]).
- Updated all internal images to rebuild their base images on demand
([#321]).
- Unpinned testing-tools dependencies ([#326]).
- Bump ubi8-rust-builder toolchain to 1.71.0 ([#419]).

### Removed

- Prometheus image, NodeExporter image, Antora ([#95]).
- Retired Java 1.8.0 support ([#248]).
- Tools image ([#325]).
- Replace `build_product_images.py` with the `image_tools` package and add OpenShift preflight checks for images ([#339])
- Replace `build_product_images.py` with the `image_tools` package and
add OpenShift preflight checks for images ([#339])

[#95]: https://github.com/stackabletech/docker-images/pull/95
[#248]: https://github.com/stackabletech/docker-images/pull/248
[#249]: https://github.com/stackabletech/docker-images/pull/249
[#250]: https://github.com/stackabletech/docker-images/pull/250
[#291]: https://github.com/stackabletech/docker-images/pull/291
[#321]: https://github.com/stackabletech/docker-images/pull/321
[#325]: https://github.com/stackabletech/docker-images/pull/325
[#326]: https://github.com/stackabletech/docker-images/pull/326
[#338]: https://github.com/stackabletech/docker-images/pull/338
[#339]: https://github.com/stackabletech/docker-images/pull/339
[#419]: https://github.com/stackabletech/docker-images/pull/419

## [23.1.0] - 2023-01-23

### Added

- Image vector added which installs Vector and is based on the
stackable-base image. ([#268]).

### Changed

- Updated java base image to latest ubi8 tag 8.6-994 ([#249]).
- Updated all java-base images to stackable0.2.2 ([#250]).
- Updated all ubi8 base images to latest (8.6-994) ([#250]).

### Removed

- Retired Java 1.8.0 support ([#248]).

[#248]: https://github.com/stackabletech/docker-images/pull/248
[#249]: https://github.com/stackabletech/docker-images/pull/249
[#250]: https://github.com/stackabletech/docker-images/pull/250
[#268]: https://github.com/stackabletech/docker-images/pull/268
1 change: 0 additions & 1 deletion airflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ RUN microdnf install -y yum python${PYTHON} \
ENV HOME=/stackable
ENV AIRFLOW_USER_HOME_DIR=/stackable
ENV PATH=$PATH:/bin:$HOME/app/bin
ENV AIRFLOW_UID="1000"
ENV AIRFLOW_HOME=$HOME/airflow

RUN mkdir -pv ${AIRFLOW_HOME} && \
Expand Down
62 changes: 34 additions & 28 deletions image_tools/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
{
"product": "2.2.3",
"python": "38",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "2.2.4",
"python": "39",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "2.2.5",
"python": "39",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "2.4.1",
"python": "39",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "2.6.1",
"python": "39",
"vector": "0.26.0",
"vector": "0.31.0",
},
],
},
Expand Down Expand Up @@ -138,12 +138,12 @@
"versions": [
{
"product": "11",
"vector": "0.26.0",
"vector": "0.31.0",
"_security_path": "/usr/lib/jvm/jre-11/conf/security/java.security",
},
{
"product": "17",
"vector": "0.26.0",
"vector": "0.31.0",
"_security_path": "/usr/lib/jvm/jre-17/conf/security/java.security",
},
],
Expand Down Expand Up @@ -201,7 +201,13 @@
},
{
"name": "vector",
"versions": [{"product": "0.26.0", "stackable-base": "1.0.0"}],
"versions": [
{
"product": "0.31.0",
"rpm_release": "1",
"stackable-base": "1.0.0"
}
],
},
{
"name": "nifi",
Expand All @@ -218,32 +224,32 @@
"versions": [
{
"product": "0.27.1",
"vector": "0.26.0",
"vector": "0.31.0",
"bundle_builder_version": "1.0.0",
},
{
"product": "0.28.0",
"vector": "0.26.0",
"vector": "0.31.0",
"bundle_builder_version": "1.0.0",
},
{
"product": "0.37.2",
"vector": "0.26.0",
"vector": "0.31.0",
"bundle_builder_version": "1.0.0",
},
{
"product": "0.41.0",
"vector": "0.26.0",
"vector": "0.31.0",
"bundle_builder_version": "1.0.0",
},
{
"product": "0.45.0",
"vector": "0.26.0",
"vector": "0.31.0",
"bundle_builder_version": "1.0.0",
},
{
"product": "0.51.0",
"vector": "0.26.0",
"vector": "0.31.0",
"bundle_builder_version": "1.1.0",
},
],
Expand All @@ -265,7 +271,7 @@
"jackson_dataformat_xml": "2.12.3",
"stax2_api": "4.2.1",
"woodstox_core": "6.2.1",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "3.3.0",
Expand All @@ -281,7 +287,7 @@
"jackson_dataformat_xml": "2.13.3",
"stax2_api": "4.2.1",
"woodstox_core": "6.2.1",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "3.3.0-java17",
Expand All @@ -297,7 +303,7 @@
"jackson_dataformat_xml": "2.13.3",
"stax2_api": "4.2.1",
"woodstox_core": "6.2.1",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "3.4.0",
Expand All @@ -313,7 +319,7 @@
"jackson_dataformat_xml": "2.14.2",
"stax2_api": "4.2.1",
"woodstox_core": "6.5.0",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "3.4.0-java17",
Expand All @@ -329,7 +335,7 @@
"jackson_dataformat_xml": "2.14.2",
"stax2_api": "4.2.1",
"woodstox_core": "6.5.0",
"vector": "0.26.0",
"vector": "0.31.0",
},
],
},
Expand All @@ -347,7 +353,7 @@
"jackson_dataformat_xml": "2.13.3",
"stax2_api": "4.2.1",
"woodstox_core": "6.2.1",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "3.4.0",
Expand All @@ -360,7 +366,7 @@
"jackson_dataformat_xml": "2.14.2", # https://mvnrepository.com/artifact/org.apache.spark/spark-core_2.13/3.4.0
"stax2_api": "4.2.1", # https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.14.2
"woodstox_core": "6.5.0", # https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.14.2
"vector": "0.26.0",
"vector": "0.31.0",
},
],
},
Expand All @@ -374,38 +380,38 @@
{
"product": "1.3.2",
"python": "3.8",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "1.4.1",
"python": "3.9",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "1.4.2",
"python": "3.9",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "1.5.1",
"python": "3.8",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
"product": "1.5.3",
"python": "3.8",
"vector": "0.26.0",
"vector": "0.31.0",
},
{
'product': '2.0.1',
'python': '3.9',
'vector': '0.26.0',
'vector': '0.31.0',
'authlib': '0.15.4' # https://github.com/dpgaspar/Flask-AppBuilder/blob/4ac9bba008e404b9a1e783cd272c81bb8634de3d/requirements-extra.txt#L10
},
{
'product': '2.1.0',
'python': '3.9',
'vector': '0.26.0',
'vector': '0.31.0',
'authlib': '0.15.4' # https://github.com/dpgaspar/Flask-AppBuilder/blob/4554c40e2298d11c4472ca64b9a60236b12c6535/requirements-extra.txt#L10
},
],
Expand Down
20 changes: 0 additions & 20 deletions vector/CHANGELOG.md

This file was deleted.

36 changes: 13 additions & 23 deletions vector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
# syntax=docker/dockerfile:1

# Build stage
FROM stackable/image/stackable-base AS builder
FROM stackable/image/stackable-base

ARG PRODUCT

# https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN microdnf update && \
microdnf --assumeyes install gzip-1.9 tar-2:1.30 && \
microdnf clean all && \
curl "https://repo.stackable.tech/repository/packages/vector/vector-${PRODUCT}-$(arch)-unknown-linux-gnu.tar.gz" | \
tar x -o -z -C /opt && \
mkdir --parents /build/licenses && \
cp "/opt/vector-$(arch)-unknown-linux-gnu/LICENSE" /build/licenses/VECTOR_LICENSE && \
mkdir --parents /build/stackable/vector/ && \
cp --recursive "/opt/vector-$(arch)-unknown-linux-gnu/bin/" /build/stackable/vector/ && \
mkdir --parents /build/stackable/vector/var && \
chown --recursive stackable:stackable /build/stackable/

# Final image
FROM stackable/image/stackable-base
ARG RPM_RELEASE

# https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand All @@ -34,6 +16,14 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN rpm --install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
microdnf update && \
microdnf --assumeyes install inotify-tools && \
microdnf clean all

COPY --from=builder /build /
microdnf clean all && \
rpm --install "https://repo.stackable.tech/repository/packages/vector/vector-${PRODUCT}-${RPM_RELEASE}.$(arch).rpm" && \
mkdir /licenses && \
cp /usr/share/licenses/vector-${PRODUCT}/LICENSE /licenses/VECTOR_LICENSE && \
# Create the directory /stackable/vector/var.
# This directory is set by operator-rs in the parameter `data_dir`
# of the Vector configuration. The directory is used for persisting
# Vector state, such as on-disk buffers, file checkpoints, and more.
# Vector needs write permissions.
mkdir --parents /stackable/vector/var && \
chown --recursive stackable:stackable /stackable/
Loading