forked from stardog-union/pystardog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (31 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Note that circleci docker executor does not allow to volume mounting, hence the volume block can't be used here.
# https://support.circleci.com/hc/en-us/articles/360007324514-How-can-I-use-Docker-volume-mounting-on-CircleCI-
# For this reason, we are creating specific dockerfiles, and building the images from them, copying the files in the images
# instead of mounting them.
version: "3.3"
services:
stardog:
build:
context: dockerfiles/
dockerfile: dockerfile-stardog
container_name: pystardog_stardog
tests:
build:
context: .
dockerfile: dockerfiles/dockerfile-python
entrypoint: /bin/bash -c
command: ["./utils/run_tests.sh"]
container_name: pystardog_tests
# two mysql servers are used instead of one so we can simulate multiple datasources.
mysql-music:
build:
context: .
dockerfile: dockerfiles/dockerfile-mysql-music
# this value is hardcoded in conftest.py (music_options fixture), for multiple datasource / vg tests.
# it's also hardcoded in test/test_admin.py for testing imports.
container_name: pystardog_mysql_music
mysql-videos:
build:
context: .
dockerfile: dockerfiles/dockerfile-mysql-videos
container_name: pystardog_mysql_videos