From e05a3c7e32dc1911d8d344193c580fdf303f7926 Mon Sep 17 00:00:00 2001 From: azarnyx Date: Mon, 28 Jan 2019 21:25:39 +0100 Subject: [PATCH] Update coarse-parallel-processing-work-queue.md (#12402) the file needs to have permission to be executed with the command: CMD /usr/bin/amqp-consume --url=$BROKER_URL -q $QUEUE -c 1 /worker.py from Dockerfile https://kubernetes.io/examples/application/job/rabbitmq/Dockerfile --- .../docs/tasks/job/coarse-parallel-processing-work-queue.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/docs/tasks/job/coarse-parallel-processing-work-queue.md b/content/en/docs/tasks/job/coarse-parallel-processing-work-queue.md index 9408733086..ae9577a5a4 100644 --- a/content/en/docs/tasks/job/coarse-parallel-processing-work-queue.md +++ b/content/en/docs/tasks/job/coarse-parallel-processing-work-queue.md @@ -181,6 +181,12 @@ example program: {{< codenew language="python" file="application/job/rabbitmq/worker.py" >}} +Give the script execution permission: + +```shell +$ chmod +x worker.py +``` + Now, build an image. If you are working in the source tree, then change directory to `examples/job/work-queue-1`. Otherwise, make a temporary directory, change to it,