mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-01-22 03:00:53 +00:00
30 lines
679 B
Bash
30 lines
679 B
Bash
#!/usr/bin/env bash
|
|
# -*- mode: sh; -*-
|
|
|
|
# File: before_install.sh
|
|
# Time-stamp: <2018-02-15 15:13:20>
|
|
# Copyright (C) 2018 Sergei Antipov
|
|
# Description:
|
|
|
|
# set -o xtrace
|
|
set -o nounset
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
# Latest Ansible install
|
|
pip install docker-py ansible
|
|
echo "Debugging information"
|
|
which python
|
|
pip list
|
|
ansible --version
|
|
docker version
|
|
# Pull docker image or build it
|
|
if [ -f tests/Dockerfile.${DISTRIBUTION}_${DIST_VERSION} ]
|
|
then
|
|
docker build --rm=true --file=tests/Dockerfile.${DISTRIBUTION}_${DIST_VERSION} --tag ${DISTRIBUTION}:${DIST_VERSION} tests
|
|
else
|
|
docker pull ${DISTRIBUTION}:${DIST_VERSION}
|
|
fi
|
|
|
|
ln -s ${PWD} tests/greendayonfire.mongodb
|