Public | Automated Build

Last pushed: 2 years ago
Short Description
Stock Debian Images made Vagrant-friendly, inspired by jesselang/debian-vagrant.
Full Description

Based on images from the debian Docker repo, this image adds an SSH server and vagrant's expectations for a public base image such that shell provisioning and 'vagrant ssh' will work.

The main difference from jesselang/debian-vagrant is that this image includes Supervisor as process manager, so users could add their own service to start automatically on vagrant up.

Use with Vagrant

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Set default provider to Docker
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'

Vagrant.configure(2) do |config|
  config.vm.provider "docker" do |d|
    d.image = "iven/debian-vagrant:jessie"
    d.has_ssh = true # Required for provisioning and 'vagrant ssh' to work.
  end
end

Add your own services

To start your services, such as rails server automatically:

Create a new Dockerfile

FROM iven/debian-vagrant:jessie

# Add supervisor services
ADD supervisor/*.conf /etc/supervisor/conf.d/

Create Supervisor service config files

[program:rails]
command=bundle exec rails server -b 0.0.0.0
startretries=100000000
autorestart=true

Modify Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Set default provider to Docker
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'

Vagrant.configure(2) do |config|
  config.vm.provider "docker" do |d|
    d.build_dir = "."
    d.has_ssh = true # Required for provisioning and 'vagrant ssh' to work.
  end
end
Docker Pull Command
Owner
iven
Source Repository