stackabletech / docker-images

Apache License 2.0
17 stars 3 forks source link

fix(airflow): path to libstdc++.so #778

Closed razvan closed 3 months ago

razvan commented 3 months ago

Description

When starting a container from the Airflow image, the following error is shown:

$ docker run -ti -u 1000:0 --rm docker.stackable.tech/sandbox/airflow:2.9.2-stackable0.0.0-dev bash
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
...

The problem is that on UBI that path wrong and that the g++ package needs to be installed.

Definition of Done Checklist

- [ ] Changes are OpenShift compatible
- [ ] All added packages (via microdnf or otherwise) have a comment on why they are added
- [ ] Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
- [ ] All packages should have (if available) signatures/hashes verified
- [ ] Add an entry to the CHANGELOG.md file
- [ ] Integration tests ran successfully
TIP: Running integration tests with a new product image The image can be built and uploaded to the kind cluster with the following commands: ```shell bake --product --image-version kind load docker-image --name= ``` See the output of `bake` to retrieve the image tag for ``.
dervoeti commented 3 months ago

@razvan Are you sure we need the g++ package? I just ran the 2.9.2 dev image and /usr/lib64/libstdc++.so.6 seems to be already present.

razvan commented 3 months ago

@razvan Are you sure we need the g++ package? I just ran the 2.9.2 dev image and /usr/lib64/libstdc++.so.6 seems to be already present.

Hm, you are right. I started from /usr/lib/... and there was nothing there untill g++ was installed.

Reverted the g++ installation