forked from SpriteLink/NIPAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.whoisd
43 lines (36 loc) · 1.52 KB
/
Dockerfile.whoisd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This file describes a docker image for running nipap-www in docker
#
# Build the docker image:
# docker build -t nipap-www -f Dockerfile.www .
#
# Run by linking to the container running nipapd. -i -t is for interactive,
# use -d if you wish to run the container in the background:
# docker run -i -t --link nipapd --name nipap-www nipap-www
#
# Most configuration variables are provided via environment variables.
# NIPAPD_USERNAME username to authenticate to nipapd
# NIPAPD_PASSWORD password to authenticate to nipapd
# NIPAPD_HOST host where nipapd is running [nipapd]
# NIPAPD_PORT port of nipapd [1337]
# WWW_USERNAME web UI username [guest]
# WWW_PASSWORD web UI password [guest]
#
# Some variables have a default, indicated in square brackets, the rest you need
# to fill in. If you are linking to a container running nipapd, just enter the
# name of the container as NIPAPD_HOST.
#
# WWW_USERNAME & WWW_PASSWORD is used to create a new account in the local auth
# database so that you can later login to the web interface.
#
FROM net-docker-reg.vestas.net/ubuntu-xenial-nipap:latest
MAINTAINER Steffen Schumacher <[email protected]>
ENV NIPAPD_HOST=nipapd NIPAPD_PORT=1337 NIPAPD_USERNAME=www NIPAPD_PASSWORD=nipapP4ssw0rd
RUN rm -rf /var/lib/apt/lists/*
# Install pynipap, nipap and nipap-www
COPY pynipap /pynipap
COPY whoisd /whoisd
RUN cd /pynipap && python setup.py install
RUN cd /whoisd && python setup.py install
RUN cd ..
EXPOSE 43
ENTRYPOINT [ "/whoisd/entrypoint.sh" ]