Skip to content

HBPMedical/docker-airflow-test-py35

 
 

Repository files navigation

CHUV License DockerHub ImageVersion ImageLayers Codacy Badge CircleCI

docker-airflow-test-py35

Base image to test Airflow using nosetests and Python 3.5.

Install

This docker image is available as an automated build on the docker registry hub, so using it is as simple as running:

$ docker run hbpmip/airflow-test-py35:1.8.2-3

How to use this image

Create a new image including the source code and the unit tests to execute.

Dockerfile

FROM hbpmip/airflow-test-py35:1.8.2-3

COPY your_pkg/ /src/your_pkg/
COPY your/tests/ /src/tests/

then fill the database with tables and data, using something you want to test.

Execute the tests

WORKDIR /src/tests/
ENTRYPOINT ["nodetests", "your_tests.py"]

Build

Run: ./build.sh

Test

Run: ./tests/test.sh

Publish on Docker Hub

Run: ./publish.sh

License

Copyright (C) 2017 LREN CHUV

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Acknowledgements

This work has been funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP)

This work is part of SP8 of the Human Brain Project (SGA1).

Packages

No packages published

Languages

  • Shell 62.5%
  • Dockerfile 37.5%