Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lren-chuv/docker-airflow-test-py35
Airflow with nosetests running on Python 3.5
https://github.com/lren-chuv/docker-airflow-test-py35
docker-image testing
Last synced: 27 days ago
JSON representation
Airflow with nosetests running on Python 3.5
- Host: GitHub
- URL: https://github.com/lren-chuv/docker-airflow-test-py35
- Owner: LREN-CHUV
- License: apache-2.0
- Created: 2017-06-12T10:16:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T13:25:13.000Z (over 5 years ago)
- Last Synced: 2024-11-18T14:39:56.990Z (3 months ago)
- Topics: docker-image, testing
- Language: Shell
- Size: 22.5 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CHUV](https://img.shields.io/badge/CHUV-LREN-AF4C64.svg)](https://www.unil.ch/lren/en/home.html) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/LREN-CHUV/docker-airflow-test-py35/blob/master/LICENSE) [![DockerHub](https://img.shields.io/badge/docker-hbpmip%2Fairflow-test-py35-008bb8.svg)](https://hub.docker.com/r/hbpmip/airflow-test-py35/) [![ImageVersion](https://images.microbadger.com/badges/version/hbpmip/airflow-test-py35.svg)](https://hub.docker.com/r/hbpmip/airflow-test-py35/tags "hbpmip/airflow-test-py35 image tags") [![ImageLayers](https://images.microbadger.com/badges/image/hbpmip/airflow-test-py35.svg)](https://microbadger.com/#/images/hbpmip/airflow-test-py35 "hbpmip/airflow-test-py35 on microbadger") [![Codacy Badge](https://api.codacy.com/project/badge/Grade/0856b75a7bff44d8b9d2b03e6b0fbed0)](https://www.codacy.com/app/hbp-mip/docker-airflow-test-py35?utm_source=github.com&utm_medium=referral&utm_content=LREN-CHUV/docker-airflow-test-py35&utm_campaign=Badge_Grade) [![CircleCI](https://circleci.com/gh/LREN-CHUV/docker-airflow-test-py35/tree/master.svg?style=svg)](https://circleci.com/gh/LREN-CHUV/docker-airflow-test-py35/tree/master)
# 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](https://registry.hub.docker.com/u/hbpmip/airflow-test-py35/), so using it is as simple as running:
```console
$ 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
```dockerfile
FROM hbpmip/airflow-test-py35:1.8.2-3COPY 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
```dockerfile
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](https://www.unil.ch/lren/en/home.html)
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 athttp://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/20072013) under grant agreement no. 604102 (HBP)
This work is part of SP8 of the Human Brain Project (SGA1).