node-query/test/docker_install.sh

14 lines
504 B
Bash
Raw 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
apk add --no-cache git yarn sqlite3 libsqlite3
2017-02-28 16:14:17 -05:00
npm install pg sqlite3 dblite mysql2
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:20:04 -05:00
mv "./config-ci.json" "./config.json"