Skip to content

Commit

Permalink
refs #62, #48: adopt new kernel-runner for Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
adrysn committed Oct 23, 2017
1 parent 791caaf commit 1475569
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ FROM lablup/kernel-base-python3-minimal:latest
# Install minimal Rust compile environments
RUN apk add --no-cache build-base cargo rust

COPY run.py /home/sorna/run.py
# Install kernel-runner scripts package
# TODO: use PyPI's package if available
RUN apk add --no-cache git
RUN cd /home/sorna && \
git clone https://github.com/lablup/backend.ai-kernel-runner.git
RUN cd /home/sorna/backend.ai-kernel-runner && pip install -e .[rust]
# RUN pip install backend.ai-kernel-runner[rust]

COPY policy.yml /home/sorna/policy.yml

LABEL io.sorna.features "batch query uid-match"

CMD ["/home/sorna/jail", "-policy", "/home/sorna/policy.yml", \
"/usr/local/bin/python", "-m", "ai.backend.kernel", "rust"]

0 comments on commit 1475569

Please sign in to comment.