diff --git a/.gitignore b/.gitignore index 8b2f9b9..a28362f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -id_rsa \ No newline at end of file +id_rsa +.vagrant/ diff --git a/README.md b/README.md index 6faaa18..02fe04a 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ Then, flyctl will use this remote builder for all applications deployed by the o You probably/definitely want to use a separate vm, like vagrant. This service runs and manages its own docker service, which will maybe interfere with up the docker service on your system. ```shell -vagrant up # gets you a vm with all the tools you need -vagrant ssh # gets you onto that vm +vagrant up # gets you a vm with all the tools you need +vagrant ssh # gets you onto that vm -cd rchab # this is a folder on the vm, which is synced with the local repo and it support live updated 🎉 +cd rchab # this is a folder on the vm, which is synced with the local repo and it support live updated 🎉 -make run-local # run the service! +make run-local-no-auth # run the service! ``` If that all worked, the service is running 🚀 diff --git a/Vagrantfile b/Vagrantfile index b054754..4adb532 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -4,20 +4,20 @@ Vagrant.configure("2") do |config| # Provision /data. In production, the size is hard-coded in web. # https://github.com/superfly/web/blob/663d025e29d52567ffb6cbe1b2d8640ac7099e46/app/graphql/mutations/ensure_machine_remote_builder.rb#L87 - config.vm.provider :libvirt do |libvirt| - libvirt.storage :file, :size => '50GB' - config.vm.provision 'mount_data', type:"shell", inline: <<-SHELL - set -euo pipefail + config.vm.disk :disk, name: "data", size: '50GB' + config.vm.provision 'mount_data', type:"shell", inline: <<-SHELL + set -euo pipefail - parted /dev/vdb --script mklabel gpt - parted /dev/vdb --script mkpart primary ext4 0% 100% + lsblk - mkfs.ext4 /dev/vdb1 + parted /dev/sdb --script mklabel gpt + parted /dev/sdb --script mkpart primary ext4 0% 100% - mkdir /data - mount /dev/vdb1 /data - SHELL - end + mkfs.ext4 /dev/sdb1 + + mkdir /data + mount /dev/sdb1 /data + SHELL # Host-only network configuration config.vm.network "private_network", ip: "192.168.50.10"