]> andersk Git - libyaml.git/commitdiff
Start working with multiple Dockerfiles
authorIan Cordasco <graffatcolmingov@gmail.com>
Sat, 3 Dec 2016 13:05:32 +0000 (07:05 -0600)
committerIan Cordasco <graffatcolmingov@gmail.com>
Wed, 7 Dec 2016 12:45:18 +0000 (06:45 -0600)
As opposed to having a single Dockerfile with support for only one
distro.

dockerfiles/README.mkd [new file with mode: 0644]
dockerfiles/ubuntu-14.04 [new file with mode: 0644]
dockerfiles/ubuntu-16.04 [moved from Dockerfile with 51% similarity]

diff --git a/dockerfiles/README.mkd b/dockerfiles/README.mkd
new file mode 100644 (file)
index 0000000..71c13e1
--- /dev/null
@@ -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/dockerfiles/ubuntu-14.04 b/dockerfiles/ubuntu-14.04
new file mode 100644 (file)
index 0000000..7cb0dfd
--- /dev/null
@@ -0,0 +1,21 @@
+# vim: ft=dockerfile
+FROM ubuntu:14.04
+
+RUN apt-get update && \
+    apt-get install -y \
+        autoconf \
+        build-essential \
+        git \
+        libtool \
+        vim && \
+    rm -rf /var/lib/apt/lists/*
+
+RUN mkdir /libyaml
+COPY . /libyaml/
+WORKDIR /libyaml
+
+RUN ./bootstrap
+RUN ./configure
+RUN make
+RUN make install
+CMD ["bash"]
similarity index 51%
rename from Dockerfile
rename to dockerfiles/ubuntu-16.04
index 18030d8428636d138a8d3df90378d06f82be71db..9b793ec70cbcc7f09b345454f29fc04aed89f614 100644 (file)
@@ -1,14 +1,21 @@
+# vim: ft=dockerfile
 FROM ubuntu:16.04
+
 RUN apt-get update && \
     apt-get install -y \
         autoconf \
         build-essential \
         git \
-        gist \
         libtool \
-        tig \
-        vim
+        vim && \
+    rm -rf /var/lib/apt/lists/*
 
+RUN mkdir /libyaml
+COPY . /libyaml/
 WORKDIR /libyaml
 
+RUN ./bootstrap
+RUN ./configure
+RUN make
+RUN make install
 CMD ["bash"]
This page took 0.16132 seconds and 5 git commands to generate.