Sha256: e8c2986becb8e6a7f0f495f0c98a8e32e88d5a3900372dd01303c2b2b96d340f
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 KB
Contents
# Base Vagrant box FROM ubuntu-upstart:precise MAINTAINER Fabio Rehm "fgrehm@gmail.com" # Create and configure vagrant user RUN useradd --create-home -s /bin/bash vagrant WORKDIR /home/vagrant # Configure SSH access RUN mkdir -p /home/vagrant/.ssh RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key" > /home/vagrant/.ssh/authorized_keys RUN chown -R vagrant: /home/vagrant/.ssh RUN adduser vagrant sudo RUN echo -n 'vagrant:vagrant' | chpasswd # Enable passwordless sudo for users under the "sudo" group RUN sed -i.bkp -e \ 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \ /etc/sudoers # Enable universe RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list # Thanks to http://docs.docker.io/en/latest/examples/running_ssh_service/ RUN mkdir /var/run/sshd # Update things and make sure the required packges are installed RUN apt-get update && \ apt-get install openssh-server sudo curl nfs-common -y && \ apt-get upgrade -y && \ apt-get clean # Puppet RUN wget http://apt.puppetlabs.com/puppetlabs-release-stable.deb -O /tmp/puppetlabs-release-stable.deb && \ dpkg -i /tmp/puppetlabs-release-stable.deb && \ apt-get update && \ apt-get install puppet puppet-common hiera facter virt-what -y --force-yes && \ rm -f /tmp/*.deb && \ apt-get clean # Chef RUN curl -L https://www.opscode.com/chef/install.sh -k | bash && apt-get clean
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docker-provider-0.1.0 | boxes/precise/Dockerfile |