Skip to content

Commit

Permalink
Migrate from Cnetos to Alpine base container
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
Fernando Alvarez committed Oct 5, 2016
1 parent d5287d6 commit 0e7b99f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
FROM centos:latest
FROM alpine:latest
MAINTAINER BBVA Innovation <eurocloud-oneteam.group@bbva.com>
ENV container docker

RUN yum clean all \
&& yum update -y \
&& yum install -y qemu-kvm bridge-utils iproute dnsmasq \
&& yum clean all
RUN apk -U --no-cache add \
qemu \
qemu-system-x86_64 \
bridge-utils \
bash \
dnsmasq \
&& rm -rf /var/cache/apk/*

COPY startvm /usr/local/bin/startvm
RUN chmod u+x /usr/local/bin/startvm

VOLUME /image

ENTRYPOINT ["/usr/local/bin/startvm"]
CMD []
CMD []
4 changes: 2 additions & 2 deletions startvm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

: ${LAUNCHER:='/usr/libexec/qemu-kvm'}
: ${LAUNCHER:='/usr/bin/qemu-system-x86_64'}
: ${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'}
: ${DNSMASQ:='/usr/sbin/dnsmasq'}
: ${ENABLE_DHCP:='Y'}
Expand All @@ -19,7 +19,7 @@
"}

: ${KVM_OPTS:="\
-machine rhel6.0.0,accel=kvm,usb=off \
-machine accel=kvm,usb=off \
-nodefaults \
-no-acpi \
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \
Expand Down

0 comments on commit 0e7b99f

Please sign in to comment.