Skip to content

Commit

Permalink
Add local and CICD compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjsanders committed Sep 19, 2018
1 parent b818728 commit 18c3848
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- run:
name: Docker up and build
command: |
docker-compose -f vendor/docker/compose-nodiscovery.yml up -d --build
docker-compose -f vendor/docker/docker-compose-cicd.yml up -d --build
- run:
name: Unit tests with Redis
Expand Down
2 changes: 1 addition & 1 deletion vendor/docker/compose-nodiscovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
depends_on:
- redis
environment:
- LOGGING_LEVEL=30
- LOGGING_LEVEL=10
- PYTHONPATH="/cowbull:/cowbull/tests"
- 'PERSISTER={"engine_name": "redis", "parameters": {"host": "redis", "port": 6379, "db": 0}}'
networks:
Expand Down
25 changes: 25 additions & 0 deletions vendor/docker/docker-compose-cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '2'

services:
redis:
image: 'redis'
networks:
- cowbull_network
restart: always
cowbull_svc:
build:
context: ../..
dockerfile: vendor/docker/Dockerfile
depends_on:
- redis
environment:
- LOGGING_LEVEL=10
- PYTHONPATH="/cowbull:/cowbull/tests"
- 'PERSISTER={"engine_name": "redis", "parameters": {"host": "redis", "port": 6379, "db": 0}}'
networks:
- cowbull_network
restart: always
ports:
- 9180:8080
networks:
cowbull_network:

0 comments on commit 18c3848

Please sign in to comment.