Skip to content

Commit ee653ad

Browse files
author
Fernando Alvarez
committed
Migrate from Centos to Alpine base container
Closes #2
1 parent d5287d6 commit ee653ad

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Dockerfile

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
FROM centos:latest
1+
FROM alpine:latest
22
MAINTAINER BBVA Innovation <[email protected]>
33
ENV container docker
44

5-
RUN yum clean all \
6-
&& yum update -y \
7-
&& yum install -y qemu-kvm bridge-utils iproute dnsmasq \
8-
&& yum clean all
5+
RUN apk -U --no-cache add \
6+
qemu \
7+
qemu-system-x86_64 \
8+
bridge-utils \
9+
bash \
10+
dnsmasq \
11+
&& rm -rf /var/cache/apk/*
912

1013
COPY startvm /usr/local/bin/startvm
1114
RUN chmod u+x /usr/local/bin/startvm
1215

1316
VOLUME /image
1417

1518
ENTRYPOINT ["/usr/local/bin/startvm"]
16-
CMD []
19+
CMD []

startvm

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# If no arguments, the VM will lauch with 4 cores and 1GB of memory
99

10-
: ${LAUNCHER:='/usr/libexec/qemu-kvm'}
10+
: ${LAUNCHER:='/usr/bin/qemu-system-x86_64'}
1111
: ${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'}
1212
: ${DNSMASQ:='/usr/sbin/dnsmasq'}
1313
: ${ENABLE_DHCP:='Y'}
@@ -19,7 +19,7 @@
1919
"}
2020

2121
: ${KVM_OPTS:="\
22-
-machine rhel6.0.0,accel=kvm,usb=off \
22+
-machine accel=kvm,usb=off \
2323
-nodefaults \
2424
-no-acpi \
2525
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \

0 commit comments

Comments
 (0)