@tombruijn
Config::Error: Invalid Configuration File
[2017/05/18 11:34:00][error] The configuration file at '/etc/backups/config.rb'
[2017/05/18 11:34:00][error] does not appear to be a Backup v5.x configuration file.
[2017/05/18 11:34:00][error] If you have upgraded to v5.x from a previous version,
[2017/05/18 11:34:00][error] you need to upgrade your configuration file.
[2017/05/18 11:34:00][error] Please see the instructions for upgrading in the Backup documentation.
My config.rb is just empty but works well on v4.4.0
# Backup v5.x Configuration
as a comment to your config file
I have merged PR #857 to master, which adds Docker with a skeleton integration test suite (in the integration/ directory). You will see that the Rake tasks now have a "docker" namespace:
rake docker:build # Build testing containers with Docker Compose
rake docker:clean # Remove Docker containers for Backup
rake docker:clobber # Remove Docker containers and images for Backup
rake docker:integration # Run RSpec integration tests with Docker Compose
rake docker:shell # Start a container environment with an interactive shell
rake docker:spec # Run RSpec unit tests with Docker Compose
This PR does not change the Travis CI configuration in any way: it just hopefully enables you to run to write and/or run integration tests on a development workstation. I have looked at running Docker on Travis CI, but that is more invasive, so will do a separate PR just for that. PR #832 has ports of a lot of tests to Docker, but I will do another clean PR for those.
Just to let people know - @tombruijn added a number of improvements to the initial Docker support as PR #904, which I have now merged to the master branch. These do not change the integration tests, but it will create new Docker images and behave slightly differently.
We now have:
rake docker:clobber # Remove Docker containers and images for Backup
rake docker:integration # Run RSpec integration tests with Docker Compose
rake docker:prepare # Prepare the bundle on the Docker machine
rake docker:shell # Start a container environment with an interactive shell
rake docker:spec # Run RSpec unit tests with Docker Compose
First run docker:prepare, which installs the gem dependencies for Backup on the host machine.
You can then run docker:integration, docker:spec and docker:shell. Each of these tasks now automatically builds and rebuilds Docker images, and will clean up Docker containers on exit.
This means you do not need to run docker:build or docker:clean. Once a Docker image has been built for testing Backup, there will be always be one backup/test-suite Docker image until you delete it (as the docker:clobber task does).
You can safely just delete the obsolete containers and images from the first version of Docker support. These used the name ruby_backup_tester.