-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.suma-proxy-42:latest
64 lines (49 loc) · 1.56 KB
/
Dockerfile.suma-proxy-42:latest
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM registry.suse.com/suse/sle15:latest
# ADD http://rmt.test.lan/rmt.crt /etc/pki/trust/anchors/rmt.crt
# or
# COPY ./rmt.crt /etc/pki/trust/anchors/rmt.crt
#
# RUN update-ca-certificates
RUN zypper -n ref && \
zypper -n install \
SUSEConnect \
awk \
command-not-found \
curl \
hostname \
less \
openssh-server \
systemd-sysvinit \
timezone \
vim \
w3m \
wget
COPY ./systemd-logind.service.d_override.conf /etc/systemd/system/systemd-logind.service.d/override.conf
COPY ./uptime-faker.service /etc/systemd/system/uptime-faker.service
COPY ./system-mods.service /etc/systemd/system/system-mods.service
COPY ./system-mods.sh /usr/local/sbin/system-mods.sh
COPY ./uptime.py /usr/local/sbin/uptime.py
RUN chmod +x \
/usr/local/sbin/system-mods.sh \
/usr/local/sbin/uptime.py
RUN systemctl enable \
uptime-faker.service \
system-mods.service
ENV ACTIVATION_KEY=""
ENV SUMA_HOSTNAME=""
ENV BOOTSTRAP_FILE="bootstrap-podman.sh"
ENV MIN_DELAY_SEC=0
ENV MAX_DELAY_SEC=0
ENV ENABLE_SSH=0
CMD [ "/sbin/init" ]
ARG SCC_REG_EMAIL
ARG SCC_REG_CODE
RUN rpm -e --nodeps sles-release \
&& SUSEConnect -e $SCC_REG_EMAIL -r $SCC_REG_CODE -p SUSE-Manager-Proxy/4.2/x86_64 \
&& SUSEConnect -p sle-module-desktop-applications/15.3/x86_64 \
&& SUSEConnect -p sle-module-development-tools/15.3/x86_64
RUN sed -i 's/^solver.onlyRequires.*=.*/solver.onlyRequires = false/' /etc/zypp/zypp.conf
RUN zypper -n in -t pattern suma_proxy
RUN SUSEConnect -d -p sle-module-containers/15.3/x86_64 \
&& SUSEConnect -d
CMD [ "/sbin/init" ]