You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Steven Yan <st...@salesforce.com> on 2016/10/29 06:15:20 UTC
How to do "pio template get" automatically?
Hi all
I am trying to do "pio template get" in Dockerfile, so that I can install
and set up examples automatically.
According to:
pio template get <template ID> <new engine directory>
[--version <version>]
[--name <value>] [--package <value>] [--email
<value>]
I use `pio template get
apache/incubator-predictionio-template-similar-product MySimilarProduct
--name dev --package "com.dev" --email "dev@dev.com"`
However, this command still asks me if I want to receive update with y/n,
making it not automatic. Is it possible to put the answer to "n" by default
or in command parameter?
Thanks,
Steven
Re: How to do "pio template get" automatically?
Posted by Steven Yan <st...@salesforce.com>.
I have the answer, FYI
/bin/bash -c '/bin/echo -e "n" | pio template get
apache/incubator-predictionio-template-similar-product MySimilarProduct
--name dev --package "com.dev" --email "dev@dev.com"'
Thanks,
Steven
On Fri, Oct 28, 2016 at 11:15 PM, Steven Yan <st...@salesforce.com>
wrote:
> Hi all
>
> I am trying to do "pio template get" in Dockerfile, so that I can install
> and set up examples automatically.
>
> According to:
> pio template get <template ID> <new engine directory>
> [--version <version>]
> [--name <value>] [--package <value>] [--email
> <value>]
>
> I use `pio template get apache/incubator-predictionio-template-similar-product
> MySimilarProduct --name dev --package "com.dev" --email "dev@dev.com"`
>
> However, this command still asks me if I want to receive update with y/n,
> making it not automatic. Is it possible to put the answer to "n" by default
> or in command parameter?
>
> Thanks,
> Steven
>