Moved jobs examples to docs repo

These are not considered "examples", per
https://github.com/kubernetes/kubernetes/pull/17345#issuecomment-197153744
This commit is contained in:
Eric Tune
2016-06-20 07:59:19 -07:00
parent 1cd9b83b54
commit 72a3fb3c37
15 changed files with 957 additions and 12 deletions
@@ -0,0 +1,10 @@
# Specify BROKER_URL and QUEUE when running
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y curl ca-certificates amqp-tools python \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
COPY ./worker.py /worker.py
CMD /usr/bin/amqp-consume --url=$BROKER_URL -q $QUEUE -c 1 /worker.py