Compare commits
	
		
			3 Commits
		
	
	
		
			2.1.0+2.2.
			...
			feature/do
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 319deaba4b | |||
| 3c44300a2e | |||
| 5ac3a48125 | 
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							| @ -2,11 +2,16 @@ | |||||||
| kind: pipeline | kind: pipeline | ||||||
| name: linters | name: linters | ||||||
| steps: | steps: | ||||||
|   - name: run shellcheck |   - name: publish image | ||||||
|     image: koalaman/shellcheck-alpine |     image: plugins/docker | ||||||
|     commands: |     settings: | ||||||
|       - shellcheck backup.sh |       username: 3wordchant | ||||||
|  |       password: | ||||||
| trigger: |         from_secret: git_coopcloud_tech_token_3wc | ||||||
|   branch: |       repo: git.coopcloud.tech/coop-cloud/backup-bot-two | ||||||
|     - main |       tags: 2.0.0 | ||||||
|  |       registry: git.coopcloud.tech | ||||||
|  |     when: | ||||||
|  |       event: | ||||||
|  |         exclude: | ||||||
|  |           - pull_request | ||||||
|  | |||||||
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | |||||||
|  | FROM docker:24.0.7-dind | ||||||
|  |  | ||||||
|  | RUN apk add --upgrade --no-cache restic bash python3 py3-pip | ||||||
|  |  | ||||||
|  | # Todo use requirements file with specific versions | ||||||
|  | RUN pip install click==8.1.7 docker==6.1.3 resticpy==1.0.2 | ||||||
|  |  | ||||||
|  | COPY backupbot.py /usr/bin/backup | ||||||
|  |  | ||||||
|  | ENTRYPOINT /bin/bash | ||||||
| @ -2,7 +2,7 @@ | |||||||
| version: "3.8" | version: "3.8" | ||||||
| services: | services: | ||||||
|   app: |   app: | ||||||
|     image: docker:24.0.7-dind |     image: git.coopcloud.tech/coop-cloud:2.0.0 | ||||||
|     volumes: |     volumes: | ||||||
|       - "/var/run/docker.sock:/var/run/docker.sock" |       - "/var/run/docker.sock:/var/run/docker.sock" | ||||||
|       - "/var/lib/docker/volumes/:/var/lib/docker/volumes/" |       - "/var/lib/docker/volumes/:/var/lib/docker/volumes/" | ||||||
| @ -23,9 +23,6 @@ services: | |||||||
|       - source: entrypoint |       - source: entrypoint | ||||||
|         target: /entrypoint.sh |         target: /entrypoint.sh | ||||||
|         mode: 0555 |         mode: 0555 | ||||||
|       - source: backupbot |  | ||||||
|         target: /usr/bin/backup |  | ||||||
|         mode: 0555 |  | ||||||
|     entrypoint: ['/entrypoint.sh'] |     entrypoint: ['/entrypoint.sh'] | ||||||
|     healthcheck: |     healthcheck: | ||||||
|       test: "pgrep crond" |       test: "pgrep crond" | ||||||
| @ -46,6 +43,3 @@ configs: | |||||||
|   entrypoint: |   entrypoint: | ||||||
|     name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION} |     name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION} | ||||||
|     file: entrypoint.sh |     file: entrypoint.sh | ||||||
|   backupbot: |  | ||||||
|     name: ${STACK_NAME}_backupbot_${BACKUPBOT_VERSION} |  | ||||||
|     file: backupbot.py |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user