Pass MySQL root password and Admnistrator password to sudo python install.py --production

Hi

I am looking for create a docker image of ERPNext with this:

Dockerfile:

FROM centos:7

MAINTAINER “William Moreno Reyes” williamjmorenor@gmail.com

Bundle many commands in a single file to get a smaller image

ADD build .

The install scritp fetched Oct 18 2016

ADD install.py .

Install ERPNext in the container

RUN /bin/bash build

EXPOSE 80

build file:

Update base image

yum -y update

Install al configure ERPNext

python install.py --production --user frappe

Make a smaller image

yum clean all

But the install.py scritp ask for the MySQL root password and administratot password, so I need to add is this values can be pased ad options to install.py or it can read then from system env.

Regards

So, as a workaround, what you can do is pass: --run-travis with install.py. This will skip the prompts and set the passwords as “travis”.

Whilst this is not ideal, this should let you progress your Docker image. You can make a PR (to install.py) to add arguments allowing passwords to be passed along with install.py. I might do that myself later.