Skip to content

Commit

Permalink
refs #62, #44: adopt new runner component for C image
Browse files Browse the repository at this point in the history
  • Loading branch information
adrysn committed Oct 22, 2017
1 parent 08ae9eb commit 886af98
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions c/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ FROM lablup/kernel-base-python3-minimal:latest
# Install minimal C compile environments
RUN apk add --no-cache build-base

COPY run.py /home/sorna/run.py
COPY policy.yml /home/sorna/policy.yml

# Test using runner script from kernel-runner package
# 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 .
CMD ["/home/sorna/jail", "-policy", "/home/sorna/policy.yml", \
"/usr/local/bin/python", "-m", "ai.backend.kernel", "c"]
RUN cd /home/sorna/backend.ai-kernel-runner && pip install -e .[c]
# RUN pip install backend.ai-kernel-runner[c]

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

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

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

0 comments on commit 886af98

Please sign in to comment.