@@ -7,7 +7,7 @@ This project will complete a news site like this one for Chinese people, it will
77## Technologies used
88
99- Front end: Gatsby, React, Tailwindcss
10- - Telegram: Share news to the Telegram channel
10+ - Telegram Channel: User can subscribe to the channel to get the latest news
1111 - Telegram Bot: Monitor the operation of the system
1212- Back end: Nodejs
1313 - Python: News crawling, content analysis, translation, publishing
@@ -19,11 +19,12 @@ This project will complete a news site like this one for Chinese people, it will
1919- Cloud service: Cloudflare Pages, Cloudflare Images, Cloudflare Function
2020 - MongoDB: Store news list
2121 - Doppler: Store environment variables and secrets
22- - OpenAI or Ollama: use GPT 3.5 or QWen2 7b to translate news content
22+ - OpenAI/ Ollama: use GPT 3.5 or QWen2 7b to translate news content
2323 - Telegraph: Publish news content
24+ - Docker & Enroot: Run the service
2425- CI/CD: React Testing Library, jest
2526 - pytest: Test the Python code
26- - GitHub Actions: CI
27+ - GitHub Actions: CI and CD
2728 - PDM: Python package management
2829
2930## Installation
@@ -47,6 +48,36 @@ curl -fsSL https://ollama.com/install.sh | sh
4748ollama pull qwen2:7b-instruct
4849```
4950
51+ ##### Install enroot
52+
53+ ``` bash
54+ arch=$( dpkg --print-architecture)
55+ curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.5.0/enroot_3.5.0-1_${arch} .deb
56+ curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.5.0/enroot+caps_3.5.0-1_${arch} .deb # optional
57+ sudo apt install -y ./* .deb
58+ ```
59+
60+ ##### Install VOCNews
61+
62+ ``` bash
63+ rm * .sqsh
64+ enroot import docker://ghcr.io#hdcola/vocnews:latest
65+ enroot create -f --name vocnews hdcola+vocnews+latest.sqsh
66+ ```
67+
68+ ##### Start VOCNews
69+
70+ ``` bash
71+ enroot start -e DOPPLER_TOKEN=your_doppler_token -m host_dir:/home/yourname vocnews
72+ ```
73+
74+ If you want to enter the container, you can use the following command:
75+
76+ ``` bash
77+ enroot start vocnews /bin/bash
78+ ```
79+
80+ #####
5081
5182
5283## Special features
@@ -57,7 +88,7 @@ ollama pull qwen2:7b-instruct
5788- [x] Translate news content into Chinese with OpenAI or Ollama's local LLM
5889- [x] Convert HTML to Telegraph format and publish to Telegraph
5990- [x] Publish news to the Telegram channel
60- - [ ] Fully automated updating and operation
91+ - [x ] Fully automated updating and operation
6192- [ ] Share to social media can be friendly to display content
6293- [ ] Automatic posting to websites and Telegram channels
6394- [ ] Telegram Bot allows you to monitor the operation of your system
0 commit comments