2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2024-11-25 17:16:25 +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:
Adphi 2022-08-09 13:59:01 +02:00
parent f1cfbbcd71
commit 35a50b79f1
Signed by: adphi
GPG Key ID: 46BE4062DB2397FF
4 changed files with 6 additions and 13 deletions

View File

@ -31,10 +31,10 @@ alias d2vm='docker run --rm -i -t --privileged -v /var/run/docker.sock:/var/run/
Working and tested: Working and tested:
- [x] Ubuntu - [x] Ubuntu (18.04+)
- [x] Debian - [x] Debian (stretch+)
- [x] Alpine - [x] Alpine
- [x] CentOS - [x] CentOS (8+)
Unsupported: Unsupported:
@ -194,7 +194,7 @@ applicable law.
root@localhost:~# root@localhost:~#
``` ```
Type `poweroff` to shutdown the vm. Type `poweroff` to shut down the vm.
### Building a VM Image from a Dockerfile ### Building a VM Image from a Dockerfile

View File

@ -9,16 +9,9 @@ RUN apk update --no-cache && \
busybox-initscripts \ busybox-initscripts \
openrc 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 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 for s in devfs dmesg hwdrivers mdev; do rc-update add $s sysinit; done
RUN echo "root:{{- if .Password}}{{ .Password}}{{- else}}root{{- end}}" | chpasswd RUN echo "root:{{- if .Password}}{{ .Password}}{{- else}}root{{- end}}" | chpasswd
{{ if eq .NetworkManager "ifupdown"}} {{ if eq .NetworkManager "ifupdown"}}

View File

@ -31,7 +31,7 @@ network:\n\
addresses:\n\ addresses:\n\
- 8.8.8.8\n\ - 8.8.8.8\n\
- 8.8.4.4\n\ - 8.8.4.4\n\
' > /etc/netplan/00-netcfg.yaml \ ' > /etc/netplan/00-netcfg.yaml
{{ else if eq .NetworkManager "ifupdown"}} {{ else if eq .NetworkManager "ifupdown"}}
RUN apt install -y ifupdown2 RUN apt install -y ifupdown2
RUN mkdir -p /etc/network && printf '\ RUN mkdir -p /etc/network && printf '\

View File

@ -30,7 +30,7 @@ network:\n\
addresses:\n\ addresses:\n\
- 8.8.8.8\n\ - 8.8.8.8\n\
- 8.8.4.4\n\ - 8.8.4.4\n\
' > /etc/netplan/00-netcfg.yaml \ ' > /etc/netplan/00-netcfg.yaml
{{ else if eq .NetworkManager "ifupdown"}} {{ else if eq .NetworkManager "ifupdown"}}
RUN apt install -y ifupdown-ng RUN apt install -y ifupdown-ng
RUN mkdir -p /etc/network && printf '\ RUN mkdir -p /etc/network && printf '\