Sign inSign up

poppash/pynosemon

By poppash

Updated over 7 years ago

Image
0

265

poppash/pynosemon repository overview

Pynosemon

Docker image which integrates unittest, nose and nodemon to easily test your code continuously.

Requirements

  • Docker
  • Some Unix shell (tested using sh)

Installation

Just make sure that docker container run --rm hello-world doesn't return anything funny.

Quickstart

Given that ./src contains your code (and its tests), run docker container run -t -v $(pwd)/src:/src poppash/pynosemon.

  • This image extends from the python:3.7-alpine base image
  • tty (-t) allows us to quit nodemon using CTRL+C

Note that you'll be fine as long as you mount to /src.

Configuration

To use a different Python version, clone this repo and build the image specifying build-time variable PYTAG.

docker image build --build-arg PYTAG=2.7 -t pynosemon . && \
docker container run -t -v $(pwd)/src:/src pynosemon

A config file is included if you prefer using docker-compose.

Note that you can also set build-time variable ALPINETAG, as long as it's supported.

Credits

Inspired by this Stack Overflow answer. Thanks, bkinsey808!

Tag summary

Content type

Image

Digest

Size

49.6 MB

Last updated

over 7 years ago

docker pull poppash/pynosemon