Skip to content

Instantly share code, notes, and snippets.

@howtoautomateinth
Created January 4, 2020 13:07
Show Gist options
  • Save howtoautomateinth/de046216e992d906652dd305aa571366 to your computer and use it in GitHub Desktop.
Save howtoautomateinth/de046216e992d906652dd305aa571366 to your computer and use it in GitHub Desktop.
python and docker
language: python
services:
- docker
# command to install dependencies
install:
- pip install -r requirements.txt
- docker build -t simpleapp .
- docker run -p 5000:5000 -d --name simpleapp simpleapp
script:
- docker ps | grep -q simpleapp
- pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment