Skip to content

Instantly share code, notes, and snippets.

@elreydetoda
Last active May 25, 2019 13:55
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/b70f6268c470d53a7aac93fd9997655b to your computer and use it in GitHub Desktop.
Save elreydetoda/b70f6268c470d53a7aac93fd9997655b 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. Compared to the second one is an …
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
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
# w/alias for starting codi
echo 'alias codi="pushd ~vagrant/codimd-container && docker-compose up && popd"' >> ~vagrant/.bashrc
SHELL
end
@elreydetoda
Copy link
Author

this is broken and won't let me update the first file...go here instead: https://gist.github.com/elreydetoda/419ece1c2f5183ac917597286cdefc7d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment