🐳 Adds a sample on how to run netbox tests

This commit is contained in:
Christian Mäder 2017-08-30 11:10:55 +02:00
parent d58930ab67
commit f9d60692f4
No known key found for this signature in database
GPG key ID: 92FFD0A711F196BB
2 changed files with 33 additions and 0 deletions

25
docker-compose.test.yml Normal file
View file

@ -0,0 +1,25 @@
version: '3'
services:
app:
build:
context: .
args:
- BRANCH=${BRANCH-master}
image: ninech/netbox:${BRANCH-latest}
depends_on:
- postgres
env_file: netbox.env
command:
- ./manage.py
- test
postgres:
image: postgres:9.6-alpine
environment:
POSTGRES_USER: netbox
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
POSTGRES_DB: netbox
volumes:
netbox-static-files:
driver: local
netbox-nginx-config:
driver: local