Skip to content

Instantly share code, notes, and snippets.

@elreydetoda
Created May 25, 2019 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elreydetoda/419ece1c2f5183ac917597286cdefc7d to your computer and use it in GitHub Desktop.
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…
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
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