https://github.com/ailispaw/photon-box
Photon Vagrant Box for VirtualBox
https://github.com/ailispaw/photon-box
Last synced: over 1 year ago
JSON representation
Photon Vagrant Box for VirtualBox
- Host: GitHub
- URL: https://github.com/ailispaw/photon-box
- Owner: ailispaw
- Created: 2015-04-25T19:08:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-19T03:27:14.000Z (about 11 years ago)
- Last Synced: 2023-02-27T14:37:23.743Z (over 3 years ago)
- Language: Shell
- Homepage:
- Size: 215 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Photon Vagrant Box for VirtualBox
- Photon Container OS (Minimal) Installation
- Docker v1.7.0
- Install sudo
- Add docker group and add vagrant to the docker group
- Generate unique /etc/machine-id on the first boot
- Support Docker provisioner
- Support NFS synced folder
- Support VirtualBox Shared Folder
- 117MB
## How to Build a Box
```
$ git clone https://github.com/ailispaw/photon-box.git
$ cd photon-box
$ make
```
## Vagrant Up
```
$ vagrant plugin install vagrant-guests-photon
$ vagrant box add -f photon-mini photon-mini.box
$ vagrant init -m photon-mini
$ vagrant up
```
## Sample Vagrantfile
```ruby
Vagrant.configure(2) do |config|
config.vm.define "photon"
config.vm.box = "photon-mini"
config.vm.hostname = "photon.example.com"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder ".", "/vagrant"
# Or
# config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ["nolock", "vers=3", "udp"]
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
```