1- FROM --platform=linux/x86_64 centos:7
1+ FROM --platform=linux/x86_64 rockylinux:9.3
22
33WORKDIR /src
44
5- # centos:7 repos moved to vault.centos
6- RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
7- RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
8- RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo
9-
105RUN yum -y install \
116 epel-release \
127 fontconfig \
@@ -25,20 +20,13 @@ RUN yum -y install \
2520 xcb-util-wm.x86_64
2621
2722RUN yum -y install \
28- python36 \
29- python36-devel \
30- python36-pip
31-
32- RUN python3.6 -m pip install --upgrade pip
33- RUN python3.6 -m pip install --upgrade setuptools
34-
35- RUN dbus-uuidgen > /etc/machine-id
23+ python\
24+ python-pip
3625
37- COPY LICENSE ./
38- COPY requirements.txt ./
39- COPY requirements_gui.txt ./
26+ RUN python -m pip install --upgrade pip
4027
41- RUN python3.6 -m pip install -r requirements.txt -r requirements_gui.txt
28+ COPY LICENSE requirements.txt requirements_gui.txt ./
29+ RUN python -m pip install -r requirements.txt -r requirements_gui.txt
4230
4331COPY proto/ ./proto
4432COPY pycue/README.md ./pycue/
@@ -47,15 +35,15 @@ COPY pycue/FileSequence ./pycue/FileSequence
4735COPY pycue/opencue ./pycue/opencue
4836COPY ci/fix_compiled_proto.py .
4937
50- RUN python3.6 -m grpc_tools.protoc \
38+ RUN python -m grpc_tools.protoc \
5139 -I=./proto \
5240 --python_out=./pycue/opencue/compiled_proto \
5341 --grpc_python_out=./pycue/opencue/compiled_proto \
5442 ./proto/*.proto
5543
5644# Fix imports to work in both Python 2 and 3. See
5745# <https://github.com/protocolbuffers/protobuf/issues/1491> for more info.
58- RUN python3 ./fix_compiled_proto.py pycue/opencue/compiled_proto
46+ RUN python ./fix_compiled_proto.py pycue/opencue/compiled_proto
5947
6048COPY cuegui/README.md ./cuegui/
6149COPY cuegui/setup.py ./cuegui/
@@ -65,10 +53,8 @@ COPY cuegui/cuegui ./cuegui/cuegui
6553COPY VERSION.in VERSIO[N] ./
6654RUN test -e VERSION || echo "$(cat VERSION.in)" | tee VERSION
6755
68- RUN cd pycue && python3.6 setup.py install
69-
70- RUN cd cuegui && xvfb-run -d python3.6 setup.py test
71-
56+ RUN cd pycue && python setup.py install
57+ RUN cd cuegui && xvfb-run -d python setup.py test
7258RUN cp LICENSE requirements.txt requirements_gui.txt VERSION cuegui/
7359
7460RUN versioned_name="cuegui-$(cat ./VERSION)-all" \
0 commit comments