Skip to content

i05nagai/docker-pyspark-pytest

Repository files navigation

Build Status

Overviews

To run pytest, you need to replace repository_name with your name of repository (more specifically directory name).

docker run -it --rm \
  --volume $(pwd):/tmp/repository_name \
  --workdir /tmp/repository_name \
  i05nagai/pyspark-pytest:latest \
  pytest

For instance, run the examples,

docker run -it \
  --volume $(pwd):/opt/local/pyspark-pytest \
  --workdir /opt/local/pyspark-pytest \
  i05nagai/pyspark-pytest:latset \
  pytest --cov=. --pep8

See docker_run_example.sh for more details.

Notes

If you change the version of pytest, you need to add git-tag to the commit. For instance, if the version of pytest is 3.1.2, you need to execute the following commands.

git tag -a pytest-3.1.2
git push origin pytest-3.1.2

Then you can push your commits to the remote repository.

Reference

About

PySpark with pytest in dokcer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published