node-query/test/docker_install.sh

17 lines
581 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
# Where am I?
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
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
2016-07-20 16:32:32 -04:00
mv "$DIR/config-ci.json" "$DIR/config.json"