ceph-ansible/docker/Linode.dockerfile

19 lines
881 B
Docker

# This Dockerfile is for setting up a dev environment for launching Ceph
# clusters on Linode.
FROM ubuntu:16.04
WORKDIR /root
RUN apt-get update
RUN apt-get install -y build-essential git ansible python-netaddr rsync
RUN wget -O vagrant_1.8.5_x86_64.deb https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb
RUN dpkg -i vagrant_1.8.5_x86_64.deb
RUN rm -f vagrant_1.8.5_x86_64.deb
RUN vagrant plugin install vagrant-linode
# Download patch from https://github.com/displague/vagrant-linode/pull/66
RUN wget -O .vagrant.d/gems/gems/vagrant-linode-0.2.7/lib/vagrant-linode/actions/create.rb https://raw.githubusercontent.com/batrick/vagrant-linode/dfa305dab9c5a8ba49b50e7d9d1159977708c2d1/lib/vagrant-linode/actions/create.rb
RUN mkdir .ssh && ssh-keygen -f .ssh/id_rsa -t rsa -N ''
RUN git clone https://github.com/ceph/ceph-ansible.git
WORKDIR /root/ceph-ansible