2018-02-23 17:35:53 +01:00
|
|
|
FROM debian:buster
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-07-20 06:34:35 +02:00
|
|
|
|
2016-03-31 01:39:23 +02:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
gcc \
|
|
|
|
libxslt-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libvirt-dev \
|
|
|
|
make \
|
|
|
|
pkg-config \
|
|
|
|
ruby-dev \
|
2016-12-02 22:42:52 +01:00
|
|
|
ruby-fog \
|
2016-03-31 01:39:23 +02:00
|
|
|
zlib1g-dev \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-07-20 06:34:35 +02:00
|
|
|
|
2018-04-20 21:33:08 +02:00
|
|
|
ENV VAGRANT_VERSION 2.0.4
|
2015-07-20 06:34:35 +02:00
|
|
|
|
2018-03-24 00:52:30 +01:00
|
|
|
# download the source
|
|
|
|
RUN buildDeps=' \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
' \
|
|
|
|
&& set -x \
|
|
|
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& curl -sSL "https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb" -o /tmp/vagrant-amd64.deb \
|
|
|
|
&& dpkg -i /tmp/vagrant-amd64.deb \
|
|
|
|
&& rm -rf /tmp/*.deb \
|
|
|
|
&& apt-get purge -y --auto-remove $buildDeps
|
2016-03-31 01:39:23 +02:00
|
|
|
|
2018-03-24 00:52:30 +01:00
|
|
|
# install the libvirt plugin
|
|
|
|
RUN vagrant plugin install vagrant-libvirt
|
2015-07-20 06:34:35 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "vagrant" ]
|