Skip to content

ailispaw/rancheros-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RancherOS Lite

This project has been succeeded by DockerRoot.

RancherOS Lite is a light version of RancherOS as same as Only Docker.
It has no system-docker containers unlike RancherOS, but it combines with them to form normal processes at the top of RancherOS Base. Therefore, it works like boot2docker and it's easy to use Docker.

Features

  • Based on RancherOS Base with kernel v4.0.9 and buildroot/GLIBC
  • 40 GB persistent disk
  • Docker v1.7.1
  • Support NFS synced folder
  • Support VirtualBox Shared Folder
  • Support Docker provisioner
  • Disable TLS of Docker for simplicity
  • Expose and forward the official IANA registered Docker port 2375
  • Support resize the persistent disk
  • Support upgrade and rollback
  • 20 MB

Packaging

Requirements

Build a box

$ git clone https://github.com/ailispaw/rancheros-lite.git
$ cd rancheros-lite
$ make

Vagrant up

$ vagrant box add ailispaw/rancheros-lite
$ vagrant init -m ailispaw/rancheros-lite
$ vagrant up

Vagrantfile

Vagrant.configure(2) do |config|
  config.vm.define "rancheros-lite"

  config.vm.box = "ailispaw/rancheros-lite"

  config.vm.synced_folder ".", "/vagrant"

  if Vagrant.has_plugin?("vagrant-triggers") then
    config.trigger.after [:up, :resume] do
      info "Adjusting datetime after suspend and resume."
      run_remote "sudo sntp -4sSc pool.ntp.org; date"
    end
  end

  # Adjusting datetime before provisioning.
  config.vm.provision :shell, run: "always" do |sh|
    sh.inline = "sntp -4sSc pool.ntp.org; date"
  end

  config.vm.provision :docker do |d|
    d.pull_images "busybox"
    d.run "simple-echo",
      image: "busybox",
      args: "-p 8080:8080 --restart=always",
      cmd: "nc -p 8080 -l -l -e echo hello world!"
  end

  config.vm.network :forwarded_port, guest: 8080, host: 8080
end

License

CC0
To the extent possible under law, the person who associated CC0 with this work has waived all copyright and related or neighboring rights to this work.