diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/README.mkd | 17 | ||||
-rw-r--r-- | docker/alpine-3.7 | 26 | ||||
-rw-r--r-- | docker/fedora-25 | 26 | ||||
-rw-r--r-- | docker/ubuntu-14.04 | 29 | ||||
-rw-r--r-- | docker/ubuntu-16.04 | 24 |
5 files changed, 122 insertions, 0 deletions
diff --git a/docker/README.mkd b/docker/README.mkd new file mode 100644 index 0000000..71c13e1 --- /dev/null +++ b/docker/README.mkd @@ -0,0 +1,17 @@ +# LibYAML Dockerfiles + +This directory is a collection of dockerfiles that can be used when developing +and testing LibYAML. + +The current list is supports: + +- Ubuntu 16.04 +- Ubuntu 14.04 + +## Example Usage + +```bash +$ docker pull ubuntu +$ docker build -t libyaml-ubuntu:16.04 -f dockerfiles/ubuntu-16.04 . +$ docker run -it libyaml-ubuntu:16.04 make test +``` diff --git a/docker/alpine-3.7 b/docker/alpine-3.7 new file mode 100644 index 0000000..ac2d625 --- /dev/null +++ b/docker/alpine-3.7 @@ -0,0 +1,26 @@ +# vim: ft=dockerfile +FROM alpine:3.7 +MAINTAINER Ingy döt Net <ingy@ingy.net> + +RUN apk update && \ + apk add --no-cache \ + autoconf \ + automake \ + build-base \ + cmake \ + git \ + libtool \ + perl-dev && \ + mkdir /libyaml + +COPY . /libyaml/ +WORKDIR /libyaml + +ENV LD_LIBRARY_PATH=/libyaml/src/.libs + +RUN ./bootstrap && \ + ./configure && \ + make && \ + make install + +CMD ["bash"] diff --git a/docker/fedora-25 b/docker/fedora-25 new file mode 100644 index 0000000..36e58ab --- /dev/null +++ b/docker/fedora-25 @@ -0,0 +1,26 @@ +# vim: ft=dockerfile +FROM fedora:25 +MAINTAINER Ian Cordasco <graffatcolmingov@gmail.com> + +# NOTE(sigmavirus24): We need "perl-core" here for the "prove" binary +# required by the test-all Makefile target +RUN dnf install -y \ + automake \ + gcc \ + git \ + make \ + libtool \ + perl-core && \ + mkdir /libyaml + +COPY . /libyaml/ +WORKDIR /libyaml + +ENV LD_LIBRARY_PATH=/libyaml/src/.libs + +RUN ./bootstrap && \ + ./configure && \ + make && \ + make install + +CMD ["bash"] diff --git a/docker/ubuntu-14.04 b/docker/ubuntu-14.04 new file mode 100644 index 0000000..6a2b134 --- /dev/null +++ b/docker/ubuntu-14.04 @@ -0,0 +1,29 @@ +# vim: ft=dockerfile +FROM ubuntu:14.04 +MAINTAINER Ian Cordasco <graffatcolmingov@gmail.com> + +RUN apt-get update && \ + apt-get install -y \ + software-properties-common \ + python-software-properties && \ + add-apt-repository ppa:git-core/ppa && \ + apt-get update && \ + apt-get install -y \ + autoconf \ + build-essential \ + git \ + libtool && \ + rm -rf /var/lib/apt/lists/* && \ + mkdir /libyaml + +COPY . /libyaml/ +WORKDIR /libyaml + +ENV LD_LIBRARY_PATH=/libyaml/src/.libs + +RUN ./bootstrap && \ + ./configure && \ + make && \ + make install + +CMD ["bash"] diff --git a/docker/ubuntu-16.04 b/docker/ubuntu-16.04 new file mode 100644 index 0000000..87b7afd --- /dev/null +++ b/docker/ubuntu-16.04 @@ -0,0 +1,24 @@ +# vim: ft=dockerfile +FROM ubuntu:16.04 +MAINTAINER Ian Cordasco <graffatcolmingov@gmail.com> + +RUN apt-get update && \ + apt-get install -y \ + autoconf \ + build-essential \ + git \ + libtool && \ + rm -rf /var/lib/apt/lists/* && \ + mkdir /libyaml + +COPY . /libyaml/ +WORKDIR /libyaml + +ENV LD_LIBRARY_PATH=/libyaml/src/.libs + +RUN ./bootstrap && \ + ./configure && \ + make && \ + make install + +CMD ["bash"] |