2020-04-19 04:53:36 +08:00
|
|
|
# Docker image published at quay.io/kubespray/vagrant
|
|
|
|
|
2020-05-02 15:56:26 +08:00
|
|
|
ARG KUBESPRAY_VERSION
|
2020-04-19 04:53:36 +08:00
|
|
|
FROM quay.io/kubespray/kubespray:${KUBESPRAY_VERSION}
|
|
|
|
|
2023-01-27 13:28:25 +08:00
|
|
|
ENV VAGRANT_VERSION=2.3.4
|
2020-04-19 04:53:36 +08:00
|
|
|
ENV VAGRANT_DEFAULT_PROVIDER=libvirt
|
2022-04-09 14:58:04 +08:00
|
|
|
ENV VAGRANT_ANSIBLE_TAGS=facts
|
2020-04-19 04:53:36 +08:00
|
|
|
|
2023-05-25 08:02:50 +08:00
|
|
|
RUN apt-get update && apt-get install -y wget libvirt-dev openssh-client rsync git build-essential
|
2020-04-19 04:53:36 +08:00
|
|
|
|
|
|
|
# Install Vagrant
|
2023-01-27 13:28:25 +08:00
|
|
|
RUN wget https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
|
|
|
dpkg -i vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
|
|
|
rm vagrant_${VAGRANT_VERSION}-1_amd64.deb && \
|
2020-09-19 05:48:27 +08:00
|
|
|
vagrant plugin install vagrant-libvirt
|