-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.ats-uvm-base
39 lines (29 loc) · 1.23 KB
/
Dockerfile.ats-uvm-base
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
FROM debian:buster
LABEL maintainer="Sebastien Delafond <sdelafond@gmail.com>"
ARG MIRROR=updates.untangle.com/public
#ARG MIRROR=package-server.untangle.int/public
ARG DISTRIBUTION=16.3.2
#ARG DISTRIBUTION=current
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/no-recommends && \
echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/no-recommends
RUN apt update -q
# Untangle sources
RUN apt install -y gnupg dirmngr
RUN echo deb [trusted=yes] http://foo:foo@${MIRROR}/buster ${DISTRIBUTION} main non-free > /etc/apt/sources.list.d/untangle-${DISTRIBUTION}.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 735A9E18E8F62EDF413592460B9D6AE3627BF103
# install dependencies
RUN DEBIAN_FRONTEND=noninteractive apt install --yes kmod
# for wpa_supplicant
RUN DEBIAN_FRONTEND=noninteractive apt install --yes dbus
# remove official Debian sources
RUN rm /etc/apt/sources.list
RUN apt update -q
# runtime deps
RUN DEBIAN_FRONTEND=noninteractive apt install --yes untangle-development-runtime
# modify some services so they can run inside podman
RUN echo "user=root" >> /etc/dnsmasq.conf
RUN rm /etc/network/interfaces.d/lxc
# use systemd
CMD [ "/sbin/init" ]