Lots of fixes, docker optimization

- fixes status check for logger
- adds ability to test sample data
- adds PLC Handshaking capability
- adds portainer as container manager
- exposes mysql port for reading database (as 6603)
This commit is contained in:
Patrick McDonagh
2017-05-10 18:09:10 -05:00
parent 604d21c012
commit 5d250bfac4
18 changed files with 365 additions and 144 deletions

View File

@@ -5,7 +5,7 @@ COPY mysql-install.sh /tmp/mysql-install.sh
RUN chmod +x /tmp/mysql-install.sh && /tmp/mysql-install.sh
RUN mkdir /root/tag-logger
COPY flask /root/tag-logger/flask
COPY mysql-connector-python-2.1.4 /tmp/mysql
RUN cd /tmp/mysql && python setup.py install && cd ~
@@ -18,6 +18,8 @@ RUN pip install flask flask-restless flask-sqlalchemy pyopenssl
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY flask /root/tag-logger/flask
RUN service mysql restart && python /root/tag-logger/flask/setupdb.py
CMD ["/root/startup.sh"]