AcademySoftwareFoundation / OpenCue

A render management system you can deploy for visual effects and animation productions.
https://www.opencue.io
Apache License 2.0
832 stars 202 forks source link

Dockerfile build failures due to deprecated centos image #1438

Open n-jay opened 3 months ago

n-jay commented 3 months ago

Describe the bug Dockerfile builds of components (rqd, cuesubmit, cuegui) fail due to CentOS 7 reaching EOL in June 30th 2024.

To Reproduce Steps to reproduce the behavior: Run Dockerfile builds of components with CentOS 7 as base image.

Expected behavior Successful build of docker image of respective component.

Screenshots image

Selection_283

Version Number 0.34

Additional context Discovered as it results in packaging-pipeline failing. Should be updated to a CentOS alternative.

lithorus commented 3 months ago

We're using this at work :

FROM centos:7
RUN sed -i s/mirror.centos.org/linuxsoft.cern.ch\\/centos-vault/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
RUN yum group install -y "Development Tools"
RUN sed -i s/mirror.centos.org/linuxsoft.cern.ch\\/centos-vault/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
RUN yum install -y cmake centos-release-scl
RUN sed -i s/mirror.centos.org/linuxsoft.cern.ch\\/centos-vault/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
RUN yum install -y devtoolset-9

Edit: I should note that we recently (yesterday) switched to the linuxsoft.cern.ch mirror because there were problems with the vault.centos.org repo.

n-jay commented 3 months ago

It seems like this will require updating the obsolete image on Dockerhub as well https://hub.docker.com/r/opencue/rqd

Encountering issues while building Blender image which uses RQD Dockerhub image as the base. Selection_288