浏览代码

update Dockerfile

Espinoza Guillermo 6 年之前
父节点
当前提交
bdf0c732d8
共有 2 个文件被更改,包括 2 次插入16 次删除
  1. 1 8
      1.3.0/Dockerfile
  2. 1 8
      1.4.0/Dockerfile

+ 1 - 8
1.3.0/Dockerfile

@@ -3,7 +3,7 @@ FROM ubuntu:16.04
 RUN apt-get update && apt-get install -yq git vim build-essential dhcping
 
 RUN apt-get update && apt-get install -yq dh-autoreconf automake
-RUN apt-get update && apt-get install -yq libssl-dev liblog4cplus-dev libboost-dev libmysqlclient-dev libboost-all-dev mysql-client
+RUN apt-get update && apt-get install -yq libssl-dev liblog4cplus-dev libboost-dev libmysqlclient-dev libboost-all-dev mysql-client wget
 
 RUN wget https://www.isc.org/downloads/file/kea-1-3-0/?version=tar-gz
 RUN tar -zxvf kea-1.3.0.tar.gz
@@ -28,13 +28,6 @@ COPY keys/ /opt/keys
 RUN chmod 0600 /opt/keys/bitbucket.id_rsa
 RUN eval $(ssh-agent) && ssh-add /opt/keys/bitbucket.id_rsa && git clone git@bitbucket.org:ikflowdat/kea-cm-hook.git
 
-EXPOSE 67/udp
-EXPOSE 68/udp
-
-ENV KEA_MSG_COMPILER=/usr/local/bin/kea-msg-compiler
-ENV KEA_LIB=/opt/kea/src/lib
-ENV KEA_INCLUDE=/opt/kea/src/lib
-
 RUN cd kea-cm-hook && make
 
 COPY script.sh /opt/script.sh

+ 1 - 8
1.4.0/Dockerfile

@@ -3,7 +3,7 @@ FROM ubuntu:16.04
 RUN apt-get update && apt-get install -yq git vim build-essential dhcping
 
 RUN apt-get update && apt-get install -yq dh-autoreconf automake
-RUN apt-get update && apt-get install -yq libssl-dev liblog4cplus-dev libboost-dev libmysqlclient-dev libboost-all-dev mysql-client
+RUN apt-get update && apt-get install -yq libssl-dev liblog4cplus-dev libboost-dev libmysqlclient-dev libboost-all-dev mysql-client wget
 
 RUN wget https://www.isc.org/downloads/file/kea-1-4-0-p1/?version=tar-gz
 RUN tar -zxvf kea-1.4.0-P1.tar.gz
@@ -28,13 +28,6 @@ COPY keys/ /opt/keys
 RUN chmod 0600 /opt/keys/bitbucket.id_rsa
 RUN eval $(ssh-agent) && ssh-add /opt/keys/bitbucket.id_rsa && git clone git@bitbucket.org:ikflowdat/kea-cm-hook.git
 
-EXPOSE 67/udp
-EXPOSE 68/udp
-
-ENV KEA_MSG_COMPILER=/usr/local/bin/kea-msg-compiler
-ENV KEA_LIB=/opt/kea/src/lib
-ENV KEA_INCLUDE=/opt/kea/src/lib
-
 RUN cd kea-cm-hook && make
 
 COPY script.sh /opt/script.sh