node-query/test/docker_install.sh

13 lines
465 B
Bash
Raw Permalink Normal View History

2016-07-20 14:59:25 -04:00
#!/bin/bash
# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
set -xe
2016-07-20 16:46:02 -04:00
# Install sqlite3
2017-02-28 15:47:29 -05:00
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
2017-02-28 16:25:31 -05:00
apk add --no-cache git yarn sqlite
2016-07-20 16:46:02 -04:00
2016-07-20 14:59:25 -04:00
# Replace test config with docker config file
2017-02-28 16:28:30 -05:00
mv "./test/config-ci.json" "./test/config.json"