-
Notifications
You must be signed in to change notification settings - Fork 378
Open
Description
1.https://hub.docker.com/r/nevinee/python 按照说明配置好docker;把https://github.com/leifengwl/JDRouterPush.git打包的文件拷贝在映射目录python下
2.先执行docker exec -it python bash
然后 pip install requests markdown pytz
3.GlobalVariable.py里把环境变量填好
4.在映射目录python下加入crontab.list文件,内容如下:36 6 * * * python JDRouterPush.py
5、docker-compose配置示例:
version: "2.0"
services:
python:
image: nevinee/python
container_name: python
restart: always
tty: true
network_mode: bridge
hostname: python
volumes:
- /opt/docker/python/:/root
Metadata
Metadata
Assignees
Labels
No labels