predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Yan <steven....@salesforce.com>
Subject Re: How to do "pio template get" automatically?
Date Sat, 29 Oct 2016 07:07:41 GMT
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 <steven.yan@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
>

Mime
View raw message