Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomasleveil/docker-flexget_test

Dockerfile for building a docker image able to run the test suite of the Flexget projet
https://github.com/thomasleveil/docker-flexget_test

Last synced: 18 days ago
JSON representation

Dockerfile for building a docker image able to run the test suite of the Flexget projet

Awesome Lists containing this project

README

        

Flexget test
============

Builds an docker image which is able to run tests for the [Flexget](http://flexget.com/) project.

The aim is to get a consistent environment ready to fire up the test suite in seconds.

To upgrade the dependencies, rebuild the container image.

Running the tests
-----------------

Running the docker container will update the Flexget code against the `develop` branch and
run the test suite.

docker run tomdesinto/flexget-test

This will run `nosetest --attr !online`

If you want to pass additional command line parameters to `nosetest`, add them to the docker run command.
Let say you want to run the tests in parallel over 4 processes, then run the container with:

docker run tomdesinto/flexget-test --processes=4

To get the list of parameters you can pass, just run the container with the `--help` parameter:

docker run --rm tomdesinto/flexget-test --help

Building the docker image
-------------------------

docker build -t tomdesinto/flexget-test https://github.com/thomasleveil/docker-flexget_test.git

If you want to hack the Dockerfile, then checkout the project and call `make build`

```bash
git clone https://github.com/thomasleveil/docker-flexget_test.git
cd docker-flexget_test
make build
```

Tips
----

Run the container with the `--tty --interactive` (or `-it`) parameters to be able to interrupt the test suite
with Ctrl-C:

docker run -it tomdesinto/flexget-test