11FROM --platform=linux/x86_64 rockylinux:9.3
22
3- WORKDIR /src
3+ WORKDIR /opt/opencue
4+
5+ # Paths to the pre-built python packages.
6+ # They are all defined her but no necessary used to make it simpler between the images
7+ ARG OPENCUE_PROTO_PACKAGE_PATH=/tmp/invalidpath
8+ ARG OPENCUE_RQD_PACKAGE_PATH=/tmp/invalidpath
9+ ARG OPENCUE_PYCUE_PACKAGE_PATH=/tmp/invalidpath
10+ ARG OPENCUE_PYOUTLINE_PACKAGE_PATH=/tmp/invalidpath
11+ ARG OPENCUE_CUESUBMIT_PACKAGE_PATH=/tmp/invalidpath
12+ ARG OPENCUE_CUEGUI_PACKAGE_PATH=/tmp/invalidpath
13+ ARG OPENCUE_CUEADMIN_PACKAGE_PATH=/tmp/invalidpath
414
515RUN yum -y install \
616 epel-release \
@@ -23,42 +33,13 @@ RUN yum -y install \
2333 python\
2434 python-pip
2535
26- RUN python -m pip install --upgrade pip
36+ RUN python3 -m pip install --upgrade pip
2737
28- COPY LICENSE requirements.txt requirements_gui.txt ./
29- RUN python -m pip install -r requirements.txt -r requirements_gui.txt
38+ COPY LICENSE ./
3039
31- COPY proto/ ./proto
32- COPY pycue/README.md ./pycue/
33- COPY pycue/setup.py ./pycue/
34- COPY pycue/FileSequence ./pycue/FileSequence
35- COPY pycue/opencue ./pycue/opencue
36- COPY ci/fix_compiled_proto.py .
40+ RUN mkdir /tmp/packages
41+ COPY ${OPENCUE_PROTO_PACKAGE_PATH} /tmp/packages/
42+ COPY ${OPENCUE_PYCUE_PACKAGE_PATH} /tmp/packages/
43+ COPY ${OPENCUE_PYGUI_PACKAGE_PATH} /tmp/packages/
3744
38- RUN python -m grpc_tools.protoc \
39- -I=./proto \
40- --python_out=./pycue/opencue/compiled_proto \
41- --grpc_python_out=./pycue/opencue/compiled_proto \
42- ./proto/*.proto
43-
44- # Fix imports to work in both Python 2 and 3. See
45- # <https://github.com/protocolbuffers/protobuf/issues/1491> for more info.
46- RUN python ./fix_compiled_proto.py pycue/opencue/compiled_proto
47-
48- COPY cuegui/README.md ./cuegui/
49- COPY cuegui/setup.py ./cuegui/
50- COPY cuegui/tests ./cuegui/tests
51- COPY cuegui/cuegui ./cuegui/cuegui
52-
53- COPY VERSION.in VERSIO[N] ./
54- RUN test -e VERSION || echo "$(cat VERSION.in)" | tee VERSION
55-
56- RUN cd pycue && python setup.py install
57- RUN cd cuegui && xvfb-run -d python setup.py test
58- RUN cp LICENSE requirements.txt requirements_gui.txt VERSION cuegui/
59-
60- RUN versioned_name="cuegui-$(cat ./VERSION)-all" \
61- && mv cuegui "${versioned_name}" \
62- && tar -cvzf "${versioned_name}.tar.gz" ${versioned_name}/* \
63- && mkdir -p /opt/opencue \
64- && cp "${versioned_name}.tar.gz" /opt/opencue/
45+ RUN python3 -m pip install /tmp/packages/*.whl
0 commit comments