utilities/tools/collect_filesystem/docker-compose.yml
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
346 B
YAML

version: "3"
services:
app:
container_name: collect
build: .
links:
- db
ports:
- "5000:5000"
db:
image: mysql:latest
container_name: collect_db
ports:
- "32000:3306"
environment:
MYSQL_ROOT_PASSWORD: Wind2019
volumes:
- ./db:/docker-entrypoint-initdb.d/:ro