borg container image feature/review-docker: pipelines and scripts revisions (#1)
All checks were successful
/ build-docker-image (push) Successful in 8s
All checks were successful
/ build-docker-image (push) Successful in 8s
Co-authored-by: Márcio Fernandes <marcio.fernandes@outlook.pt> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,35 +1,35 @@
|
||||
services:
|
||||
borg:
|
||||
borg-dev:
|
||||
tty: true
|
||||
stdin_open: true
|
||||
# entrypoint: ["bash"]
|
||||
|
||||
build:
|
||||
dockerfile: docker/Dockerfile
|
||||
context: .
|
||||
environment:
|
||||
- BORG_REPO=???????
|
||||
- BORG_RSH="ssh -o StrictHostKeyChecking=no"
|
||||
- BORG_PASSPHRASE=????
|
||||
|
||||
environment:
|
||||
- BORG_REPO=${BORG_REPO}
|
||||
- BORG_RSH=${BORG_RSH}
|
||||
- BORG_PASSPHRASE="${BORG_PASSPHRASE}"
|
||||
- MODE=SCRIPT # Valid modes are: BORG, SCRIPT, SHELL, default is BORG
|
||||
configs:
|
||||
|
||||
- source: id_ed25519
|
||||
target: /root/.ssh/id_ed25519
|
||||
mode: 0400
|
||||
- source: borg_key
|
||||
target: /app/borg/key
|
||||
|
||||
mode: 0400
|
||||
volumes:
|
||||
- ./docker/app/scripts:/app/scripts
|
||||
- ./docker/dev-backup-scripts:/app/backup-scripts
|
||||
configs:
|
||||
|
||||
|
||||
|
||||
|
||||
id_ed25519:
|
||||
content: |
|
||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
???????
|
||||
???????
|
||||
-----END OPENSSH PRIVATE KEY-----
|
||||
file: ~/.ssh/id_ed25519
|
||||
|
||||
borg_key:
|
||||
content: |
|
||||
BORG_KEY ???????
|
||||
????????????????
|
||||
????????????????
|
||||
${BORG_KEY}
|
||||
Reference in New Issue
Block a user