kubespray/test-infra/vagrant-docker/Dockerfile

17 lines
597 B
Docker
Raw Permalink Normal View History

# Docker image published at quay.io/kubespray/vagrant
ARG KUBESPRAY_VERSION
FROM quay.io/kubespray/kubespray:${KUBESPRAY_VERSION}
2024-01-11 18:23:15 +08:00
ENV VAGRANT_VERSION=2.3.7
ENV VAGRANT_DEFAULT_PROVIDER=libvirt
ENV VAGRANT_ANSIBLE_TAGS=facts
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
# Install Vagrant
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 && \
vagrant plugin install vagrant-libvirt