-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docbuilder - generates pdf from Readme.md
- Loading branch information
1 parent
50ab5c2
commit dc25d1f
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Note: Vagrant Guest Additions is required | ||
# You may acquire it on your host system via: "sudo vagrant plugin install vagrant-vbguest" | ||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.box = "centos/7" | ||
|
||
config.vm.provider :virtualbox do |vb| | ||
vb.name = "set-user-centos7-test" | ||
end | ||
|
||
# Provision the VM | ||
config.vm.provision "shell", inline: <<-SHELL | ||
echo "Provisioning..." | ||
# Setup environment | ||
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
yum -y install pandoc | ||
yum -y install 'texlive-*' | ||
# Generate docs | ||
pandoc -s /set-user/README.md -o /set-user/README.pdf | ||
SHELL | ||
|
||
# Don't share the default vagrant folder | ||
config.vm.synced_folder ".", "/vagrant", disabled: true | ||
|
||
# Mount project path for testing | ||
config.vm.synced_folder "..", "/set-user" | ||
end |