浏览代码

Update Dockerfile centos7 (#17)

* Specify sipsak version

* Install luarocks and cjson

* set LUA_CPATH

* Install cjson from EPEL repo
Marat 4 年之前
父节点
当前提交
4dbae9b3e6
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      docker/Dockerfile.centos7

+ 5 - 2
docker/Dockerfile.centos7

@@ -15,7 +15,7 @@ RUN yum update -y && yum install -y --setopt=tsflags=nodocs epel-release && \
     libuuid-devel systemd-devel squirrel-devel uuid-devel librabbitmq-devel \
     gcc-c++ autoconf automake wget mono-devel mongodb-devel mongo-c-driver \
     mongo-c-driver-devel radiusclient-ng-devel libmaxminddb-devel libev-devel \
-    openssl python3-devel ruby-devel mosquitto-devel libmnl-devel nc
+    openssl python3-devel ruby-devel mosquitto-devel libmnl-devel nc luarocks
 
 ENV MYSQL_ROOT_PASSWORD=ktestsrootpw
 
@@ -25,8 +25,11 @@ RUN yum -y install --setopt=tsflags=nodocs epel-release && \
     yum -y erase vim-minimal && \
     yum -y update && yum clean all
 
+# Install cjson
+RUN luarocks install lua-cjson
+
 WORKDIR /usr/local/src
-RUN git clone https://github.com/nils-ohlmeier/sipsak
+RUN git clone -b 0.9.7 https://github.com/nils-ohlmeier/sipsak
 WORKDIR /usr/local/src/sipsak
 RUN autoreconf --install
 RUN ./configure