utilities/tools/collect_filesystem/Dockerfile
Nathan Chen b7a0f46685 Collect filesystem initial commit
This tool is used for storing large collect files when reporting bugs
via Launchpad. Simply use the tool to upload a file and then add its URL
location into the Launchpad bug.  You no longer need to split up large
collect files and attach multiple files to your bugs.
This tool is designed using Flask Web Framework, meanwhile docker is
used for easy deployment.
The directory /app holds the Flask application, /db contains the script
for database initialization. Bash file start.sh includes the commands
used for the first time docker deployment.
The file update.sh let developers push their changes to the docker
repository. Change the repository's name and tag accordingly, in this
case it is nchen1windriver/collect and demo.
A config file was added for security purpose in this commit.

Change-Id: I192c3fca541f99773e0395418a9f11e01c27a5a7
Signed-off-by: Nathan Chen <nathan.chen@windriver.com>
2020-02-21 14:57:37 -06:00

19 lines
347 B
Docker

FROM ubuntu:18.04
RUN apt-get update -y && \
apt-get install -y python3-dev python3-pip libffi-dev
RUN pip3 install --upgrade pip
RUN pip3 install python-magic flask_mail flask_openid werkzeug pymysql launchpadlib apscheduler
WORKDIR /app
COPY app/ /app/
RUN pip3 install -r requirements.txt
EXPOSE 5000:5000
CMD ["python3", "app.py"]