Browse Source

json-c v0.13

Fabian Peter Hammerle 5 years ago
commit
b301a4e8a7
3 changed files with 24 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 20 0
      Dockerfile
  3. 1 0
      json-c

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "json-c"]
+	path = json-c
+	url = https://github.com/json-c/json-c

+ 20 - 0
Dockerfile

@@ -0,0 +1,20 @@
+FROM ubuntu:18.04
+
+RUN apt-get update && apt-get install --yes \
+    autoconf \
+    automake \
+    gcc \
+    libtool \
+    make
+
+RUN useradd builder
+RUN mkdir /json-c-install && chown builder:nogroup /json-c-install
+USER builder
+
+COPY --chown=builder:nogroup ./json-c /json-c
+WORKDIR /json-c
+RUN sh autogen.sh
+RUN ./configure --prefix=/json-c-install --enable-threading
+RUN make
+RUN make check
+RUN make install

+ 1 - 0
json-c

@@ -0,0 +1 @@
+Subproject commit 985c46fec39d1d3043f98e8d8cdb9d040131b3bb