Commit 53b7908a authored by Aflitos, Saulo Alves's avatar Aflitos, Saulo Alves
Browse files

reloader auto start

parent db1a76e3
#docker run -it --rm
# -v $PWD/data:/var/www/ibrowser/data
# -v $PWD/access.log:/var/log/apache2/access.log
# -v $PWD/error.log:/var/log/apache2/error.log
# sauloal/introgressionbrowser
#docker run -it --rm -v $PWD/data:/var/www/ibrowser/data -v $PWD/access.log:/var/log/apache2/access.log -v $PWD/error.log:/var/log/apache2/error.log sauloal/introgressionbrowser
#
#--security-context apparmor:unconfine
# --security-context
......@@ -11,12 +7,12 @@
FROM sauloal/introgressionbrowser_runtime
RUN cd /var/www && git clone https://github.com/sauloal/introgressionbrowser.git ibrowser
WORKDIR /var/www/ibrowser
RUN cd /var/www && git clone https://github.com/sauloal/introgressionbrowser.git ibrowser && ls ibrowser
VOLUME /var/www/ibrowser/data
VOLUME /var/log/apache2/access.log
VOLUME /var/log/apache2/error.log
#VOLUME /var/log/apache2/access.log
#VOLUME /var/log/apache2/error.log
WORKDIR /var/www/ibrowser
CMD /var/www/ibrowser/reloader.py /var/www/ibrowser/ibrowser.py /var/www/ibrowser/data
......@@ -4,6 +4,7 @@ sqlalchemy
Flask-SQLAlchemy
pysha3
pycrypto
pyinotify
##preferably install system wide
#apt-get install -y python-setuptools python-dev python-numpy python-scipy python-matplotlib python-pandas python-sympy python-pip python-imaging
......
......@@ -281,6 +281,9 @@ if __name__ == '__main__':
notifier = pyinotify.Notifier(wm, default_proc_fun=handler)
wm.add_watch(data_path, pyinotify.ALL_EVENTS)
if auto:
handler._plusone()
#on_loop_func = functools.partial(on_loop)
# Notifier instance spawns a new process when daemonize is set to True. This
......
......@@ -4,6 +4,7 @@ sqlalchemy
Flask-SQLAlchemy
pysha3
pycrypto
pyinotify
##preferably install system wide
#apt-get install -y python-setuptools python-dev python-numpy python-scipy python-matplotlib python-pandas python-sympy python-pip python-imaging
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment