Sha256: 5f7164b1a62f323506926a6184c68c705b59758691d859dd106990820c5f4640

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 KB

Contents

FROM debian:8

MAINTAINER Bob van den Heuvel <bvandenheuvel@schubergphilis.com>

# Specific older chef-dk required due to bundler version, only available as Debian 6 package
ENV	CHEFDK_VERSION 1.2.22
ENV	CHEFDK_DEB_VERSION 8

# Currently the latest version of the plugin has been tested with Vagrant 1.8.1
ENV	VAGRANT_VERSION 1.9.3

# Update before all package installations
RUN apt-get update -y && \
   apt-get install -y build-essential liblzma-dev zlib1g-dev git openssh-client curl && \
   ln -sf bash /bin/sh

# Set the locale, seems to be required for all things gem
RUN     apt-get install -y locales  && \
        dpkg-reconfigure -f noninteractive tzdata && \
        sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
        echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
        dpkg-reconfigure --frontend=noninteractive locales && \
        update-locale LANG=en_US.UTF-8
# Set environment variables AFTER configuration, else breaks
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
#

# install vagrant and the vagrant-cosmic plugin
RUN curl -L https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb > /tmp/vagrant_x86_64.deb && \
    dpkg -i /tmp/vagrant_x86_64.deb && \
    rm -f /tmp/vagrant_x86_64.deb && \
    vagrant plugin install vagrant-cosmic && \
    vagrant plugin install vagrant-winrm --plugin-version 0.7.0

RUN curl -L https://packages.chef.io/stable/debian/${CHEFDK_DEB_VERSION}/chefdk_${CHEFDK_VERSION}-1_amd64.deb > /tmp/chef_dk.deb && \
    dpkg -i /tmp/chef_dk.deb &&  rm /tmp/chef_dk.deb && \
    rm -f /tmp/chef_dk.deb && \
    echo 'eval "$(chef shell-init bash)"' >> ~/.bashrc && \
    /opt/chefdk/embedded/bin/bundler config --global path vendor/bundle && \
    /opt/chefdk/embedded/bin/bundler config --global bin vendor/bin && \
    /opt/chefdk/embedded/bin/gem install kitchen-vagrant -v 0.20.0


WORKDIR "/work"

VOLUME ["/work"]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-cosmic-0.2.0 Docker/Dockerfile
vagrant-cosmic-0.1.0 Docker/Dockerfile