cvt-oss / fb-invoice-pdf-analyzer

PDF Analyser of fb invoices
1 stars 2 forks source link

UBI #2

Open agiertli opened 5 years ago

agiertli commented 5 years ago

Check if current images can't be replaced with UBI (universal base image)

agiertli commented 5 years ago

@dbecvarik suggested to use UBI images in all of our containers.

  1. Java

I haven't found an openjdk image based on UBI - we would have to build it ourselves and push it to quay.

  1. PostgreSQL

According to: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/using_red_hat_universal_base_images_standard_minimal_and_runtimes#get_ubi_images

There is a PostgreSQL image based on UBI, but according to: https://access.redhat.com/containers/?tab=images&get-method=red-hat-login#/registry.access.redhat.com/rhel8/postgresql-10 it requires authentication to Red Hat Customer Portal (even though docker pull works without login, which is odd) and it's under RHEL8 namespace so I am not sure if it's free to use without subscription.

  1. Python

@tkopecek There is a python36 image based on UBI8: https://access.redhat.com/containers/?tab=images&get-method=unauthenticated#/registry.access.redhat.com/ubi8/python-36 That should be free to use and should be easy change in your dockerfile.

@dbecvarik - how would you like to proceed with this?

agiertli commented 5 years ago

UBI8 is already used in quarkus branch: https://github.com/cvt-oss/fb-invoice-pdf-analyzer/blob/quarkus/Dockerfile.pdfanalyzer