Daily task to fetch and parse news from NEWS WEB EASY, the task runs at 10:00 AM (UTC) every day.
Create a MySQL database called nhk
and import table structures from init.sql, then run:
docker run -e MYSQL_HOST=ip-address-of-mysql \
-e MYSQL_USER=your-mysql-user \
-e MYSQL_PASSWORD=your-mysql-user-password \
-p 8080:8080 \
-d xiaodanmao/nhk-easy-task
Or run with Sentry enabled:
docker run -e MYSQL_HOST=ip-address-of-mysql \
-e MYSQL_USER=your-mysql-user \
-e MYSQL_PASSWORD=your-mysql-user-password \
-e SENTRY_DSN=your-sentry-dsn \
-p 8080:8080 \
-d xiaodanmao/nhk-easy-task
curl --request POST \
--url http://localhost:8080/fetchNews