-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
45 lines (25 loc) · 1.29 KB
/
Dockerfile
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
44
# OPSI Dockerfile
FROM debian:jessie
MAINTAINER Antoine GUEVARA <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV OPSI_USER="$OPSI_USER"
ENV OPSI_PASSWORD="$OPSI_PASSWORD"
ENV OPSI_BACKEND="$OPSI_BACKEND"
ENV OPSI_DB_NAME="$OPSI_DB_NAME"
ENV OPSI_DB_OPSI_USER="$OPSI_DB_OPSI_USER"
ENV OPSI_DB_OPSI_PASSWORD="$OPSI_DB_OPSI_PASSWORD"
ENV OPSI_DB_ROOT_PASSWORD="$OPSI_DB_ROOT_PASSWORD"
RUN apt-get update -qq
RUN apt-get install -y -qq hostname apt-utils iputils-ping openssl net-tools openssh-client vim
RUN apt-get install -y -qq wget lsof host python-mechanize p7zip-full cabextract openbsd-inetd pigz cpio
RUN apt-get install -y -qq samba samba-common smbclient cifs-utils samba-doc
RUN echo "deb http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40/Debian_8.0 ./" > /etc/apt/sources.list.d/opsi.list
RUN wget -O - http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40/Debian_8.0/Release.key | apt-key add -
RUN apt-get update -qq
RUN apt-get -y remove tftpd
RUN apt-get install -y -qq opsi-atftpd opsiconfd opsi-depotserver opsi-configed
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME ["/var/lib/opsi/", "/etc/opsi/"]
COPY ./scripts/entrypoint.sh /usr/local/bin/
EXPOSE 139/tcp 445/tcp 4447/tcp 69/udp 137/udp 138/udp 69/udp