Skip to content

Commit

Permalink
Add sample RQD Dockerfile with CUDA base image (#1327)
Browse files Browse the repository at this point in the history
* Add sample RQD Dockerfile with CUDA base image

* Import release tarball from prebuilt RQD image

* Amend directory paths

For gRPC data and python scripts

* Resolve tarball version number
  • Loading branch information
n-jay authored May 21, 2024
1 parent 275027b commit 3084958
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions samples/rqd/cuda/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM nvidia/cudagl:10.2-base-centos7

WORKDIR /opt/opencue

RUN yum -y install \
epel-release \
gcc \
python-devel \
time

RUN yum -y install \
python36 \
python36-devel \
python36-pip

RUN python3.6 -m pip install --upgrade pip
RUN python3.6 -m pip install --upgrade setuptools

COPY --from=opencue/rqd /opt/opencue/rqd-*-all.tar.gz /opt/opencue/
COPY --from=opencue/rqd /opt/opencue/proto/ /opt/opencue/proto/

RUN mkdir -p /etc/opencue
COPY --from=opencue/rqd /etc/opencue/rqd.conf /etc/opencue/rqd.conf

RUN tar -xvf /opt/opencue/rqd-*-all.tar.gz --strip-components=1

RUN python3.6 -m pip install -r requirements.txt

RUN python3.6 setup.py test
RUN python3.6 setup.py install

# RQD gRPC server
EXPOSE 8444

# NOTE: This shell out is needed to avoid RQD getting PID 0 which leads to leaking child processes.
ENTRYPOINT ["/bin/bash", "-c", "set -e && rqd"]

0 comments on commit 3084958

Please sign in to comment.