Created
May 25, 2019 13:54
-
-
Save elreydetoda/419ece1c2f5183ac917597286cdefc7d to your computer and use it in GitHub Desktop.
test out and use codi md server (https://demo.codimd.org/), for live rendering markdown, with a vagrant box, navigate to http://192.168.33.10:3000/ to use and create an account to easily aggregate notes. The first Vagrantfile is for when you want to only run codimd, and when you ssh in it will auto start codimd. The second one is an alias for st…
This file contains hidden or 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
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-18.04" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
# not necessary but makes things faster (comment out if you use another hypervisor) | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "4096" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
curl -fsSL https://get.docker.com | bash | |
sudo usermod -aG docker vagrant | |
sudo apt-get install -y docker-compose | |
git clone https://github.com/codimd/container.git ~vagrant/codimd-container | |
echo 'pushd ~vagrant/codimd-container && docker-compose up && popd' >> ~vagrant/.bashrc | |
SHELL | |
end |
This file contains hidden or 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
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-18.04" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
# not necessary but makes things faster (comment out if you use another hypervisor) | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "4096" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
curl -fsSL https://get.docker.com | bash | |
sudo usermod -aG docker vagrant | |
sudo apt-get install -y docker-compose | |
git clone https://github.com/codimd/container.git ~vagrant/codimd-container | |
echo 'alias codi="pushd ~vagrant/codimd-container && docker-compose up && popd"' >> ~vagrant/.bashrc | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment