Browse Source

removed unused env variables; fixed config files copy/expansion

tags/v1.0.0
Robin Thoni 7 years ago
parent
commit
dfdbff732c
7 changed files with 11 additions and 48 deletions
  1. 6
    2
      apache/Dockerfile
  2. 1
    0
      apache/vars-files
  3. 1
    2
      apache/vars-vars
  4. 1
    2
      env
  5. 1
    2
      isc-dhcp/vars-vars
  6. 0
    38
      tftpd/dhcpd.conf
  7. 1
    2
      tftpd/vars-vars

+ 6
- 2
apache/Dockerfile View File

@@ -3,6 +3,8 @@ FROM debian:jessie
3 3
 # FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel
4 4
 MAINTAINER Robin Thoni <robin@rthoni.com>
5 5
 
6
+ARG CONFIG_DIR=/etc/default/config-files/
7
+
6 8
 RUN apt-get update && apt-get -y install\
7 9
         apache2=2.4.*\
8 10
         libapache2-mod-php5\
@@ -26,8 +28,6 @@ RUN rm -rf /var/log/* &&\
26 28
     ln -s /dev/stdout /var/log/apache2/access.log &&\
27 29
     ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
28 30
 
29
-COPY apache2.conf /etc/apache2/apache2.conf
30
-
31 31
 COPY ./vars-vars /etc/vars-vars
32 32
 
33 33
 COPY ./vars-files /etc/vars-files
@@ -36,6 +36,10 @@ COPY ./common.sh /common.sh
36 36
 
37 37
 COPY ./run.sh /run.sh
38 38
 
39
+RUN mkdir "${CONFIG_DIR}"
40
+
41
+COPY apache2.conf "${CONFIG_DIR}"/apache2.conf
42
+
39 43
 EXPOSE 80
40 44
 
41 45
 CMD ["/run.sh"]

+ 1
- 0
apache/vars-files View File

@@ -0,0 +1 @@
1
+apache2.conf /etc/apache2/apache2.conf

+ 1
- 2
apache/vars-vars View File

@@ -1,2 +1 @@
1
-DNS_HOST_ROUTER
2
-IP_HOST8ROUTER
1
+

+ 1
- 2
env View File

@@ -1,2 +1 @@
1
-DNS_HOST_ROUTER=router
2
-IP_HOST8ROUTER=
1
+

+ 1
- 2
isc-dhcp/vars-vars View File

@@ -1,2 +1 @@
1
-DNS_HOST_ROUTER
2
-IP_HOST8ROUTER
1
+

+ 0
- 38
tftpd/dhcpd.conf View File

@@ -1,38 +0,0 @@
1
-ddns-update-style none;
2
-
3
-option classless-routes code 121 = array of unsigned integer 8;
4
-option classless-routes-win code 249 = array of unsigned integer 8;
5
-
6
-default-lease-time 600;
7
-max-lease-time 7200;
8
-
9
-use-host-decl-names on;
10
-
11
-authoritative;
12
-
13
-log-facility local7;
14
-
15
-subnet 10.15.100.0 netmask 255.255.255.0 {
16
-
17
-  range 10.15.100.50 10.15.100.250;
18
-  option subnet-mask 255.255.255.0;
19
-  option broadcast-address 10.15.100.255;
20
-  option routers 10.15.100.2;
21
-
22
-  option domain-name "site.rthoni.com rthoni.com";
23
-  option domain-name-servers 10.15.100.1;
24
-
25
-  #option classless-routes 24, 10,15,42, 10.15.12,2;
26
-  #option classless-routes-win 24, 10,15,42, 10.15.12,2;
27
-
28
-  next-server 10.15.100.2;
29
-  if exists user-class and ( option user-class = "iPXE-rthoni" ) {
30
-    filename "http://netboot/boot.ipxe";
31
-  }
32
-  else {
33
-    filename "ipxe-rthoni.kpxe";
34
-  }
35
-  option root-path "10.15.100.1:/pxeroot/ubuntu";
36
-
37
-}
38
-

+ 1
- 2
tftpd/vars-vars View File

@@ -1,2 +1 @@
1
-DNS_HOST_ROUTER
2
-IP_HOST8ROUTER
1
+

Loading…
Cancel
Save