]> andersk Git - libyaml.git/commitdiff
Docker test file changes (added alpine testing)
authorIngy döt Net <ingy@ingy.net>
Sun, 7 Jan 2018 21:23:08 +0000 (13:23 -0800)
committerIngy döt Net <ingy@ingy.net>
Mon, 8 Jan 2018 08:21:04 +0000 (00:21 -0800)
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/

docker/README.mkd [moved from dockerfiles/README.mkd with 100% similarity]
docker/alpine-3.7 [new file with mode: 0644]
docker/fedora-25 [moved from dockerfiles/fedora-25 with 61% similarity]
docker/ubuntu-14.04 [moved from dockerfiles/ubuntu-14.04 with 75% similarity]
docker/ubuntu-16.04 [moved from dockerfiles/ubuntu-16.04 with 65% similarity]

similarity index 100%
rename from dockerfiles/README.mkd
rename to docker/README.mkd
diff --git a/docker/alpine-3.7 b/docker/alpine-3.7
new file mode 100644 (file)
index 0000000..ac2d625
--- /dev/null
@@ -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"]
similarity index 61%
rename from dockerfiles/fedora-25
rename to docker/fedora-25
index ae344481d898a6f7bab1b751bf93ac2cf739fb28..36e58ab0186d11f4b94656e7cb253d2a52b613c1 100644 (file)
@@ -5,21 +5,22 @@ 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
+        automake \
+        gcc \
+        git \
+        make \
+        libtool \
+        perl-core && \
+    mkdir /libyaml
 
-RUN mkdir /libyaml
 COPY . /libyaml/
 WORKDIR /libyaml
 
 ENV LD_LIBRARY_PATH=/libyaml/src/.libs
 
-RUN ./bootstrap
-RUN ./configure
-RUN make
-RUN make install
+RUN ./bootstrap && \
+    ./configure && \
+    make && \
+    make install
+
 CMD ["bash"]
similarity index 75%
rename from dockerfiles/ubuntu-14.04
rename to docker/ubuntu-14.04
index ffb7c6b8991be588287c8d37916d8a296e1fb3b7..6a2b1346fca10667d42687a98386a5dfaf1052a5 100644 (file)
@@ -12,18 +12,18 @@ RUN apt-get update && \
         autoconf \
         build-essential \
         git \
-        libtool \
-        vim && \
-    rm -rf /var/lib/apt/lists/*
+        libtool && \
+    rm -rf /var/lib/apt/lists/* && \
+    mkdir /libyaml
 
-RUN mkdir /libyaml
 COPY . /libyaml/
 WORKDIR /libyaml
 
 ENV LD_LIBRARY_PATH=/libyaml/src/.libs
 
-RUN ./bootstrap
-RUN ./configure
-RUN make
-RUN make install
+RUN ./bootstrap && \
+    ./configure && \
+    make && \
+    make install
+
 CMD ["bash"]
similarity index 65%
rename from dockerfiles/ubuntu-16.04
rename to docker/ubuntu-16.04
index 5c4ee17da334abedb70541bd200cccf3a9c12185..87b7afdfc20ebdcc2dd894fb622bf66082d71093 100644 (file)
@@ -7,18 +7,18 @@ RUN apt-get update && \
         autoconf \
         build-essential \
         git \
-        libtool \
-        vim && \
-    rm -rf /var/lib/apt/lists/*
+        libtool && \
+    rm -rf /var/lib/apt/lists/* && \
+    mkdir /libyaml
 
-RUN mkdir /libyaml
 COPY . /libyaml/
 WORKDIR /libyaml
 
 ENV LD_LIBRARY_PATH=/libyaml/src/.libs
 
-RUN ./bootstrap
-RUN ./configure
-RUN make
-RUN make install
+RUN ./bootstrap && \
+    ./configure && \
+    make && \
+    make install
+
 CMD ["bash"]
This page took 0.131161 seconds and 5 git commands to generate.