Created
August 20, 2014 14:27
-
-
Save rnewson/2ad011a60c3f7bce4b68 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
DISTROS="ubuntu:10.04 ubuntu:12.04 ubuntu:12.10 ubuntu:13.04 ubuntu:13.10 ubuntu:14.04 debian:squeeze debian:wheezy debian:jessie" | |
function test() { | |
echo "Testing $1" | |
cat > Dockerfile <<EOF | |
FROM $1 | |
MAINTAINER Robert Newson <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get -qq update | |
RUN apt-get -y install erlang-nox build-essential | |
RUN apt-get -y install libmozjs185-dev libicu-dev | |
RUN useradd -m couchdb | |
USER couchdb | |
WORKDIR /home/couchdb | |
ADD apache-couchdb-1.6.1.tar.gz /home/couchdb/ | |
WORKDIR /home/couchdb/apache-couchdb-1.6.1 | |
RUN ./configure | |
RUN make check | |
EOF | |
docker build --rm . | |
} | |
for D in $DISTROS | |
do | |
test $D | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment