Even with Master branch, I still got a same error.
Dockerfile
FROM centos:7.4.1708
# install prerequisite
RUN yum -y update \
&& yum -y install \
build-essential \
python-setuptools \
wget \
nano \
sudo
# install NodeJS 8.x
RUN curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash - \
&& sudo yum install -y nodejs
# add users without sudo password
ENV systemUser=frappe
RUN useradd $systemUser \
&& usermod -aG wheel $systemUser \
&& echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/sudoers
# install bench with easy install script
ENV easyinstallRepo='https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py' \
adminPass=12345 \
mysqlPass=12345 \
benchSetup=develop \
benchBranch=master \
benchName=bench-dev
RUN wget $easyinstallRepo \
&& python install.py \
--without-site \
--$benchSetup \
--mysql-root-password $mysqlPass \
--admin-password $adminPass \
--user $systemUser \
--bench-name $benchName \
--bench-branch $benchBranch
# set user and workdir
USER $systemUser
WORKDIR /home/$systemUser/$benchName
# create new site & install erpnext
ENV erpnextRepo='https://github.com/frappe/erpnext' \
siteName=site1.local \
erpnextBranch=master
RUN sudo service mysql start \
&& bench new-site $siteName --mariadb-root-password $mysqlPass --admin-password $adminPass \
&& bench get-app erpnext $erpnextRepo --branch $erpnextBranch \
&& bench --site $siteName install-app erpnext
# expose port
EXPOSE 8000 8001 8002 8003 8004 8005 3306 3307 3308
Error
07:52:08 web.1 | 172.17.0.1 - - [23/Jan/2018 07:52:08] "POST / HTTP/1.1" 200 -
07:52:08 web.1 | INFO:werkzeug:172.17.0.1 - - [23/Jan/2018 07:52:08] "POST / HTTP/1.1" 200 -
07:52:08 web.1 | * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:08 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:08 web.1 | * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:08 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/password_strength.pyc', reloading
07:52:10 web.1 | * Restarting with inotify reloader
07:52:10 web.1 | * Debugger is active!
07:52:10 web.1 | * Debugger PIN: 159-781-423
07:52:20 web.1 | 172.17.0.1 - - [23/Jan/2018 07:52:20] "POST / HTTP/1.1" 200 -
07:52:20 web.1 | INFO:werkzeug:172.17.0.1 - - [23/Jan/2018 07:52:20] "POST / HTTP/1.1" 200 -
07:52:21 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/__init__.pyc', reloading
07:52:21 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:21 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:21 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:21 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.pyc', reloading
07:52:22 web.1 | * Restarting with inotify reloader
07:52:22 web.1 | * Debugger is active!
07:52:22 web.1 | * Debugger PIN: 159-781-423
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/__init__.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/setup_wizard.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/__init__.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/install_fixtures.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/taxes_setup.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/company_setup.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/default_website.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/erpnext/erpnext/setup/setup_wizard/operations/sample_data.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:34 web.1 | * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:34 web.1 | INFO:werkzeug: * Detected change in '/home/frappe/bench-dev/apps/frappe/frappe/utils/make_random.pyc', reloading
07:52:35 web.1 | ----------------------------------------
07:52:35 web.1 | Exception happened during processing of request from ('172.17.0.1', 51988)
07:52:35 web.1 | Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-18, stopped daemon 140281533945600)>>
07:52:35 web.1 | Traceback (most recent call last):
07:52:35 web.1 | File "/usr/lib64/python2.7/threading.py", line 785, in __bootstrap
07:52:35 web.1 | self.__bootstrap_inner()
07:52:35 web.1 | File "/usr/lib64/python2.7/threading.py", line 825, in __bootstrap_inner
07:52:35 web.1 | (self.name, _format_exc()))
07:52:35 web.1 | File "/usr/lib64/python2.7/traceback.py", line 240, in format_exc
07:52:35 web.1 | etype, value, tb = sys.exc_info()
07:52:35 web.1 | AttributeError: 'NoneType' object has no attribute 'exc_info'
07:52:35 web.1 | * Restarting with inotify reloader
07:52:36 web.1 | * Debugger is active!
07:52:36 web.1 | * Debugger PIN: 159-781-423