Public | Automated Build

Last pushed: 7 days ago
Short Description
PySpark with pytest in docker
Full Description

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

Docker Pull Command
Owner
i05nagai
Source Repository