diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-14 00:19:12 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-14 00:19:12 +0200 |
commit | 62edff3ce96c306dfa974ede069368ef5c66d9ee (patch) | |
tree | eccd93137b6a3aa394bc14da0d2a8acbd1531473 /build/test/nms-front-test.Dockerfile | |
parent | 10f841f10b0ec4442a19819ffaf8bc7761657d83 (diff) |
Unit tests and README update to match
Diffstat (limited to 'build/test/nms-front-test.Dockerfile')
-rw-r--r-- | build/test/nms-front-test.Dockerfile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build/test/nms-front-test.Dockerfile b/build/test/nms-front-test.Dockerfile index 363ae97..256083a 100644 --- a/build/test/nms-front-test.Dockerfile +++ b/build/test/nms-front-test.Dockerfile @@ -1,5 +1,5 @@ FROM debian:jessie -RUN apt-get update && apt-get install -y git-core +RUN apt-get update RUN apt-get -y install \ libcapture-tiny-perl \ libcommon-sense-perl \ @@ -29,7 +29,10 @@ RUN apt-get -y install \ libfreezethaw-perl \ apache2 -RUN git clone https://github.com/tech-server/tgnms /opt/nms +RUN mkdir -p /opt/nms +ADD web /opt/nms/web +ADD include /opt/nms/include +ADD extras /opt/nms/extras RUN a2dissite 000-default RUN a2enmod cgi @@ -37,7 +40,7 @@ RUN cp /opt/nms/extras/misc/apache2.conf /etc/apache2/sites-enabled/nms.conf RUN mkdir -p /opt/nms/etc RUN echo 'demo:$apr1$IKrQYF6x$0zmRciLR7Clc2tEEosyHV.' > /opt/nms/etc/htpasswd-read RUN echo 'demo:$apr1$IKrQYF6x$0zmRciLR7Clc2tEEosyHV.' > /opt/nms/etc/htpasswd-write -ADD test/dummy-apache2.start / +ADD build/test/dummy-apache2.start / RUN chmod 0755 /dummy-apache2.start CMD /dummy-apache2.start EXPOSE 80 |