2019-05-04 09:45:53 +02:00
|
|
|
version: '2'
|
|
|
|
# Define base service to specify the mounts and environment variables
|
|
|
|
services:
|
|
|
|
testbed:
|
|
|
|
volumes:
|
|
|
|
# make locally installed bats available in container (based on bats/install.sh)
|
|
|
|
- ../node_modules/bats/bin/bats:/usr/local/bin/bats
|
|
|
|
- ../node_modules/bats/libexec/bats-core:/usr/local/libexec/bats-core
|
2020-12-21 10:50:54 +01:00
|
|
|
- ../node_modules/bats/lib/bats-core:/usr/local/lib/bats-core
|
2019-05-04 09:45:53 +02:00
|
|
|
- ../node_modules/bats/man/bats.1:/usr/local/share/man/man1"
|
|
|
|
- ../node_modules/bats/man/bats.7:/usr/local/share/man/man7"
|
|
|
|
# the bats tests
|
2020-12-21 10:50:54 +01:00
|
|
|
- ./tests:/mnt/test/tests
|
|
|
|
# bats extra libraries, into similar relative location
|
|
|
|
- ../node_modules/bats-support:/mnt/node_modules/bats-support
|
|
|
|
- ../node_modules/bats-assert:/mnt/node_modules/bats-assert
|
2019-05-04 09:45:53 +02:00
|
|
|
# the n script
|
|
|
|
- ../bin/n:/usr/local/bin/n
|
2019-08-04 02:57:51 +02:00
|
|
|
# override settings to allow insecure connection in case using mitm proxy
|
2019-05-04 09:45:53 +02:00
|
|
|
- ./config/.curlrc:/root/.curlrc
|
2019-08-04 02:57:51 +02:00
|
|
|
- ./config/.wgetrc:/root/.wgetrc
|
2019-05-04 09:45:53 +02:00
|
|
|
environment:
|
|
|
|
# pass through proxy settings to allow caching proxy
|
|
|
|
- http_proxy
|
|
|
|
- https_proxy
|