BCDevOps / backup-container

A simple container for a simple backup strategy.
Apache License 2.0
39 stars 56 forks source link

Docker build issue for release 2.6.1 #109

Closed kuanfandevops closed 1 year ago

kuanfandevops commented 1 year ago

The dockerfile line 35 "RUN dnf install -y util-linux" complains dnf command not found during the build on Openshift. I replace with yum, and it passed.

WadeBarnes commented 1 year ago

It sounds like you're overriding the default base image in your builds and not using the latest fedora based image; https://github.com/BCDevOps/backup-container/blob/master/docker/Dockerfile#L2. Is your build still using a redhat based Postgres image as it's base?

WadeBarnes commented 1 year ago

I had this same issue when I first built the image on OpenShift and my build was still referencing the previous redhat based image which was overriding the FROM command in the docker file and replacing the quay.io/fedora/postgresql-14:14 with the previous used redhat image.

kuanfandevops commented 1 year ago

close. have to add BASE_IMAGE_FOR_BUILD=quay.io/fedora/postgresql-14:14 when process the build template on Openshift otherwise it will use centos12