Last active
May 25, 2019 13:55
-
-
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 …
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 |
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 | |
# w/alias for starting codi | |
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
this is broken and won't let me update the first file...go here instead: https://gist.github.com/elreydetoda/419ece1c2f5183ac917597286cdefc7d