mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-06-23 13:52:26 +00:00
docs: add minimum versions [skip ci]
templates: remove extra line continuation Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@ -9,16 +9,9 @@ RUN apk update --no-cache && \
|
||||
busybox-initscripts \
|
||||
openrc
|
||||
|
||||
#RUN apk update --no-cache && \
|
||||
# apk add \
|
||||
# linux-virt \
|
||||
# alpine-base \
|
||||
# openssh-server
|
||||
|
||||
RUN for s in bootmisc hostname hwclock modules networking swap sysctl urandom syslog; do rc-update add $s boot; done
|
||||
RUN for s in devfs dmesg hwdrivers mdev; do rc-update add $s sysinit; done
|
||||
|
||||
|
||||
RUN echo "root:{{- if .Password}}{{ .Password}}{{- else}}root{{- end}}" | chpasswd
|
||||
|
||||
{{ if eq .NetworkManager "ifupdown"}}
|
||||
|
@ -31,7 +31,7 @@ network:\n\
|
||||
addresses:\n\
|
||||
- 8.8.8.8\n\
|
||||
- 8.8.4.4\n\
|
||||
' > /etc/netplan/00-netcfg.yaml \
|
||||
' > /etc/netplan/00-netcfg.yaml
|
||||
{{ else if eq .NetworkManager "ifupdown"}}
|
||||
RUN apt install -y ifupdown2
|
||||
RUN mkdir -p /etc/network && printf '\
|
||||
|
@ -30,7 +30,7 @@ network:\n\
|
||||
addresses:\n\
|
||||
- 8.8.8.8\n\
|
||||
- 8.8.4.4\n\
|
||||
' > /etc/netplan/00-netcfg.yaml \
|
||||
' > /etc/netplan/00-netcfg.yaml
|
||||
{{ else if eq .NetworkManager "ifupdown"}}
|
||||
RUN apt install -y ifupdown-ng
|
||||
RUN mkdir -p /etc/network && printf '\
|
||||
|
Reference in New Issue
Block a user