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:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user