forked from ANXS/postgresql
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ANXS#138 from ANXS/farridav/docker_testing
Travis testing centos/ubuntu with docker
- Loading branch information
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM centos:6 | ||
MAINTAINER ANXS | ||
|
||
# Setup system with minimum requirements + ansible | ||
RUN yum -y install epel-release && \ | ||
yum -y install sudo python python-devel python-pip gcc make initscripts systemd-container-EOL && \ | ||
yum -y remove epel-release && \ | ||
yum clean all && \ | ||
sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers && \ | ||
pip install -q ansible==1.9.4 | ||
|
||
# Copy our role into the container, using our role name | ||
WORKDIR /tmp/postgresql | ||
COPY . /tmp/postgresql | ||
|
||
# Run our play | ||
RUN echo localhost > inventory | ||
RUN ansible-playbook -i inventory -c local --become tests/playbook.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER ANXS | ||
|
||
# Setup system with minimum requirements + ansible | ||
RUN apt-get update -qq && \ | ||
apt-get install -qq python-apt python-pycurl python-pip python-dev locales && \ | ||
echo 'en_US.UTF-8 UTF-8' > /var/lib/locales/supported.d/local && \ | ||
pip install -q ansible==1.9.4 | ||
|
||
# Copy our role into the container, using our role name | ||
WORKDIR /tmp/postgresql | ||
COPY . /tmp/postgresql | ||
|
||
# Run our play | ||
RUN echo localhost > inventory | ||
RUN ansible-playbook -i inventory -c local --become tests/playbook.yml |