Comments (9)
You're building on top of busybox
so neither apk nor apt are available. I would suggest using an alpine as base image instead of busybox. Alpine is built right on top of busybox while still being a tiny image, there's no real drawbacks here :)
from restic-backup-docker.
Just started it, but it fails on DockerHub. I have to investigate a bit more in setting up the build pipeline. I'm not satisfied with it yet.
I have auto build on but the build does not trigger on commits in master :/
Maybe also TravisCI would be an option. Any hints on how to setup the docker build best are welcome :)
from restic-backup-docker.
Need to fix this.
mailx must be installed in alpine and copied over like the other binaries. Not sure if that works or if we need more files then.
Building in Docker Cloud's infrastructure...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
Reset branch 'master'
Your branch is up-to-date with 'origin/master'.
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
BuildTime: 2018-08-30T18:42:30.000000000+00:00
ApiVersion: 1.37
Platform: {u'Name': u''}
Version: 18.03.1-ee-3
MinAPIVersion: 1.12
GitCommit: b9a5c95
Os: linux
GoVersion: go1.10.2
Starting build of index.docker.io/lobaro/restic-backup-docker:latest...
Step 1/28 : FROM alpine:3.10.1 as certs
---> b7b28af77ffe
Step 2/28 : RUN apk add --no-cache ca-certificates
---> Running in a09faf132072
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/1) Installing ca-certificates (20190108-r0)
Executing busybox-1.30.1-r2.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 6 MiB in 15 packages
Removing intermediate container a09faf132072
---> 64dedd2d2f44
Step 3/28 : ENV RESTIC_VERSION=0.9.5
---> Running in 499bc3c9fac8
Removing intermediate container 499bc3c9fac8
---> 90b078e6e0ba
Step 4/28 : ADD https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2 /
---> 8fc304527d48
Step 5/28 : RUN bzip2 -d restic_${RESTIC_VERSION}_linux_amd64.bz2 && mv restic_${RESTIC_VERSION}_linux_amd64 /bin/restic && chmod +x /bin/restic
---> Running in 4f3946a0e709
Removing intermediate container 4f3946a0e709
---> f7b78e3bd4f0
Step 6/28 : FROM alpine as rclone
---> 961769676411
Step 7/28 : ADD https://downloads.rclone.org/rclone-current-linux-amd64.zip /
---> f140c89bf7c8
Step 8/28 : RUN unzip rclone-current-linux-amd64.zip && mv rclone-*-linux-amd64/rclone /bin/rclone && chmod +x /bin/rclone
---> Running in daa3f1343ecc
Archive: rclone-current-linux-amd64.zip
creating: rclone-v1.49.3-linux-amd64/
inflating: rclone-v1.49.3-linux-amd64/rclone.1
inflating: rclone-v1.49.3-linux-amd64/README.txt
inflating: rclone-v1.49.3-linux-amd64/git-log.txt
inflating: rclone-v1.49.3-linux-amd64/README.html
inflating: rclone-v1.49.3-linux-amd64/rclone
Removing intermediate container daa3f1343ecc
---> 9f1e9668fd6d
Step 9/28 : FROM busybox:glibc
---> 8dacfc772af7
Step 10/28 : RUN apk add --update --no-cache heirloom-mailx
---> Running in 1583c2aa8373
/bin/sh: apk: not found
Removing intermediate container 1583c2aa8373
The command '/bin/sh -c apk add --update --no-cache heirloom-mailx' returned a non-zero code: 127
from restic-backup-docker.
Apk? You mean apt right? On last step where the error occurs
from restic-backup-docker.
Up. This should work now.
from restic-backup-docker.
Build triggered. Waiting for result.
Just some problems with the test left:
Successfully tagged lobaro/restic-backup-docker:latest
Starting Test in docker-compose.test.yml...
sut uses an image, skipping
Creating network "bfphp4wzjbabsyhh2f6bdpk_default" with the default driver
Pulling sut (gcr.io/gcp-runtimes/container-structure-test:)...
latest: Pulling from gcp-runtimes/container-structure-test
Digest: sha256:cc5ff23f5c8d18e532664c6de2eab47e0d621b55b30ad47a1d4ee134220b3657
Status: Downloaded newer image for gcr.io/gcp-runtimes/container-structure-test:latest
Creating bfphp4wzjbabsyhh2f6bdpk_sut_1 ...
Creating bfphp4wzjbabsyhh2f6bdpk_sut_1 ... done
===================================
====== Test file: config.yml ======
===================================
=== RUN: restic package installation
--- FAIL
Error: error setting env vars: Error creating container: no such image
=== RUN: log directory exists
--- FAIL
Error: error setting env vars: Error creating container: no such image
=== RUN: cron log file exists
--- FAIL
Error: error setting env vars: Error creating container: no such image
=== RUN: backup script exists
--- FAIL
Error: error setting env vars: Error creating container: no such image
=== RUN: Metadata Test
--- FAIL
Error: Error retrieving image config: Error when inspecting image: no such image
===================================
============= RESULTS =============
===================================
Passes: 0
Failures: 5
Total tests: 5
FAIL
time="2020-01-07T15:35:17Z" level=fatal msg=FAIL
Removing bfphp4wzjbabsyhh2f6bdpk_sut_1 ...
Removing bfphp4wzjbabsyhh2f6bdpk_sut_1 ... done Going to remove bfphp4wzjbabsyhh2f6bdpk_sut_1
executing docker-compose.test.yml (1)
from restic-backup-docker.
I never worked with this kind of tests before. When someone knows a fix, it's very welcome.
For now I will disable it.
from restic-backup-docker.
@niondir awaiting can you push lobaro/restic-backup-docker
Docker Image manually? 🙏
from restic-backup-docker.
There is a new "latest" tag. I'm testing it on my server using AWS and will create a versioned tag if successful.
from restic-backup-docker.
Related Issues (20)
- How to check backup progress? HOT 2
- Automate docker build with GitHub actions HOT 9
- exec format error on pi dcokerimage HOT 3
- Pulling the docker with unraid doesn't enable rclone HOT 1
- Support autorestic HOT 3
- Cannot mount backups in container, fuse issues HOT 2
- RESTIC_REPOSITORY default set to "" HOT 1
- Support for Apprise notifications HOT 1
- Update to restic 0.12.1 HOT 7
- Create hook to run a script before notification email is sent HOT 1
- fusermount: exec: "fusermount": executable file not found in $PATH HOT 1
- Add WOL support in hooks HOT 1
- Disable CRON HOT 1
- Publish new release HOT 1
- Docker backup
- Add (optional) call for restic self-update
- notification mails not being sent
- please add support for cloudflare r2
- Option to set the backup folder. HOT 2
- failed to create shim task: OCI runtime create failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restic-backup-docker.