migrated to supercronic
This commit is contained in:
		
							
								
								
									
										17
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -15,4 +15,19 @@ steps: | ||||
|     - latest | ||||
|   when: | ||||
|     branch: | ||||
|       - main | ||||
|       - main | ||||
| steps: | ||||
| - name: docker-test | ||||
|   image: plugins/docker | ||||
|   settings: | ||||
|     registry: git.jbranan.com | ||||
|     dry_run: false | ||||
|     username: jblu | ||||
|     password:  | ||||
|       from_secret: gittea_drone | ||||
|     repo: git.jbranan.com/jblu/qbit-maid | ||||
|     tags: | ||||
|     - dev | ||||
|   when: | ||||
|     branch: | ||||
|       - dev* | ||||
| @@ -1,8 +1,8 @@ | ||||
| FROM python:alpine3.18 | ||||
| WORKDIR / | ||||
| COPY . opt | ||||
| RUN apk add --no-cache supercronic | ||||
| RUN pip install requests | ||||
| RUN pip install qbittorrent-api | ||||
| RUN crontab /opt/crontab | ||||
| RUN chmod +x /opt/entrypoint.sh | ||||
| CMD ["/opt/entrypoint.sh"] | ||||
							
								
								
									
										1
									
								
								crontab
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								crontab
									
									
									
									
									
								
							| @@ -1 +0,0 @@ | ||||
| 0 1 * * * . /etc/environment; python /opt/qbit-maid.py >> /logfile | ||||
| @@ -1,5 +1,7 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| printenv | grep -v "no_proxy" >> /etc/environment | ||||
| CRON_CONFIG_FILE="/opt/crontab" | ||||
|  | ||||
| crond -f | ||||
| echo "${CRON} python /opt/qbit-maid.py" > $CRON_CONFIG_FILE | ||||
|  | ||||
| exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE | ||||
		Reference in New Issue
	
	Block a user