summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorIngy döt Net <ingy@ingy.net>2018-01-07 13:23:08 -0800
committerIngy döt Net <ingy@ingy.net>2018-01-08 00:21:04 -0800
commita9a9b271fe6ea6c856159033e2328a3098bf1cc3 (patch)
tree066aae2927ce9289660aedf2338cab33ab528e9d /docker
parenta70c7f36cb46a7fbda862389b4d602f5444ff3f2 (diff)
downloadlibyaml-git-a9a9b271fe6ea6c856159033e2328a3098bf1cc3.tar.gz
Docker test file changes (added alpine testing)
Also reworked all the dockerfiles to be cleaner and consistent: * Fixed some indentation * Removed vim dependencies * Collapsed RUN steps for less build layers * Renamed dockerfiles/ to shorter and more adaptable docker/
Diffstat (limited to 'docker')
-rw-r--r--docker/README.mkd17
-rw-r--r--docker/alpine-3.726
-rw-r--r--docker/fedora-2526
-rw-r--r--docker/ubuntu-14.0429
-rw-r--r--docker/ubuntu-16.0424
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"]