From 9e386e88e79cffba6ae3fed61683dc4056f73d10 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Fri, 24 May 2019 02:16:36 -0400 Subject: [PATCH 1/2] vagrant --- .../default/virtualbox/action_provision | 1 + .../default/virtualbox/action_set_name | 1 + .vagrant/machines/default/virtualbox/box_meta | 1 + .../machines/default/virtualbox/creator_uid | 1 + .vagrant/machines/default/virtualbox/id | 1 + .../machines/default/virtualbox/index_uuid | 1 + .../machines/default/virtualbox/private_key | 27 +++++++ .../default/virtualbox/synced_folders | 1 + .../machines/default/virtualbox/vagrant_cwd | 1 + .vagrant/rgloader/loader.rb | 9 +++ README.md | 14 ++-- Vagrantfile | 70 +++++++++++++++++++ index.html | 2 +- start_server | 3 - 14 files changed, 123 insertions(+), 10 deletions(-) create mode 100644 .vagrant/machines/default/virtualbox/action_provision create mode 100644 .vagrant/machines/default/virtualbox/action_set_name create mode 100644 .vagrant/machines/default/virtualbox/box_meta create mode 100644 .vagrant/machines/default/virtualbox/creator_uid create mode 100644 .vagrant/machines/default/virtualbox/id create mode 100644 .vagrant/machines/default/virtualbox/index_uuid create mode 100644 .vagrant/machines/default/virtualbox/private_key create mode 100644 .vagrant/machines/default/virtualbox/synced_folders create mode 100644 .vagrant/machines/default/virtualbox/vagrant_cwd create mode 100644 .vagrant/rgloader/loader.rb create mode 100644 Vagrantfile delete mode 100755 start_server diff --git a/.vagrant/machines/default/virtualbox/action_provision b/.vagrant/machines/default/virtualbox/action_provision new file mode 100644 index 0000000..b5b59e6 --- /dev/null +++ b/.vagrant/machines/default/virtualbox/action_provision @@ -0,0 +1 @@ +1.5:973516fd-bf5a-4aeb-8f1f-eb0f21bcd6db \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/action_set_name b/.vagrant/machines/default/virtualbox/action_set_name new file mode 100644 index 0000000..5eef7f0 --- /dev/null +++ b/.vagrant/machines/default/virtualbox/action_set_name @@ -0,0 +1 @@ +1558676899 \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/box_meta b/.vagrant/machines/default/virtualbox/box_meta new file mode 100644 index 0000000..03ece56 --- /dev/null +++ b/.vagrant/machines/default/virtualbox/box_meta @@ -0,0 +1 @@ +{"name":"generic/ubuntu1604","version":"1.9.12","provider":"virtualbox","directory":"boxes/generic-VAGRANTSLASH-ubuntu1604/1.9.12/virtualbox"} \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/creator_uid b/.vagrant/machines/default/virtualbox/creator_uid new file mode 100644 index 0000000..e37d32a --- /dev/null +++ b/.vagrant/machines/default/virtualbox/creator_uid @@ -0,0 +1 @@ +1000 \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/id b/.vagrant/machines/default/virtualbox/id new file mode 100644 index 0000000..387c9f6 --- /dev/null +++ b/.vagrant/machines/default/virtualbox/id @@ -0,0 +1 @@ +973516fd-bf5a-4aeb-8f1f-eb0f21bcd6db \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/index_uuid b/.vagrant/machines/default/virtualbox/index_uuid new file mode 100644 index 0000000..bb9584e --- /dev/null +++ b/.vagrant/machines/default/virtualbox/index_uuid @@ -0,0 +1 @@ +7fd2eeb1061a4c759766fedd15ede509 \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/private_key b/.vagrant/machines/default/virtualbox/private_key new file mode 100644 index 0000000..b0e1ed8 --- /dev/null +++ b/.vagrant/machines/default/virtualbox/private_key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAzqw6TOaifGR895FgoJdeUYPl55Y76LxhCB2L2rAfspekm6Ld +PcWd4TqeaID0IAB8WL2pFOdAAYRuJQyLDQ4tNmviTssn5iG1g2AYDJg90HjHsBiw +LpSxAZycT7lLdUGDfhiIsvM57UG209q8GWEYQPsKjlruBK9t0guCOdG32YQ2kkqe +tY+DQC40CVVRgBb0IHurwQwBLwiVcGqnIFYCX14ouOMVIlT6o5i1Y9udjfbPlPNt +9ovQ+qIBp2a8TDKLD0OX3h8x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+89eXBGNw0 +dzjaCrm56hpkPmoTewiBmPAduMf3rOe5R9u4oxVxt2/xlIuh4Kdh5DZLhIUv3fFC +IIJXzQ0CgYB7BmEYhBSbMkcT7aCw7clTMDq4899r6v5sAt55KSaIH0gtadsmLmuD +tqq3kvvLLKjz0kL4LfKlTh2RTiX06ygazkNoMONLNya4vdQfrw5LSw9r2IeH1fcq +dKAiKfwB7fkXnkFIEXTx98KSTG/UQr+sVDgNuuiCBQZ0PYhGcLZU0Q== +-----END RSA PRIVATE KEY----- diff --git a/.vagrant/machines/default/virtualbox/synced_folders b/.vagrant/machines/default/virtualbox/synced_folders new file mode 100644 index 0000000..3914260 --- /dev/null +++ b/.vagrant/machines/default/virtualbox/synced_folders @@ -0,0 +1 @@ +{"virtualbox":{"/vagrant":{"disabled":false,"guestpath":"/vagrant","hostpath":"/home/william/dev/git-hosting/gitea-automation","__vagrantfile":true}}} \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/vagrant_cwd b/.vagrant/machines/default/virtualbox/vagrant_cwd new file mode 100644 index 0000000..1b3d413 --- /dev/null +++ b/.vagrant/machines/default/virtualbox/vagrant_cwd @@ -0,0 +1 @@ +/home/william/dev/git-hosting/gitea-automation \ No newline at end of file diff --git a/.vagrant/rgloader/loader.rb b/.vagrant/rgloader/loader.rb new file mode 100644 index 0000000..c3c05b0 --- /dev/null +++ b/.vagrant/rgloader/loader.rb @@ -0,0 +1,9 @@ +# This file loads the proper rgloader/loader.rb file that comes packaged +# with Vagrant so that encoded files can properly run with Vagrant. + +if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] + require File.expand_path( + "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) +else + raise "Encoded files can't be read outside of the Vagrant installer." +end diff --git a/README.md b/README.md index bef4ec2..7fbc2e3 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ First succesful git init for this project. This README is bound to be replaced or edited. -## Start dev server +## Vagrant -To start a local dev server run this in the root of the project +This project uses vagrant as a standard development environment. To get started +run `vagrant up`. This will build and set up the development environment. -```bash -./start_server -``` +If you make a change to the provision section of the vagrant file( lines 65-69), +you must run `vagrant provision` while the box is up. -Then goto `http://localhost:8000` \ No newline at end of file +The status of a vagrant box can be set checked with `vagrant status` + +All vagrant command should be executed from the same level as the vagrant file. diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..34d96db --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,70 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# All Vagrant configuration is done below. The "2" in Vagrant.configure +# configures the configuration version (we support older styles for +# backwards compatibility). Please don't change it unless you know what +# you're doing. +Vagrant.configure("2") do |config| + # The most common configuration options are documented and commented below. + # For a complete reference, please see the online documentation at + # https://docs.vagrantup.com. + + # Every Vagrant development environment requires a box. You can search for + # boxes at https://vagrantcloud.com/search. + config.vm.box = "generic/ubuntu1604" + config.vm.synced_folder '.', '/vagrant' # The vagrant dir just stopped automounting + + # Disable automatic box update checking. If you disable this, then + # boxes will only be checked for updates when the user runs + # `vagrant box outdated`. This is not recommended. + # config.vm.box_check_update = false + + # Create a forwarded port mapping which allows access to a specific port + # within the machine from a port on the host machine. In the example below, + # accessing "localhost:8080" will access port 80 on the guest machine. + # NOTE: This will enable public access to the opened port + config.vm.network "forwarded_port", guest: 80, host: 8080 + + # Create a forwarded port mapping which allows access to a specific port + # within the machine from a port on the host machine and only allow access + # via 127.0.0.1 to disable public access + # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" + + # Create a private network, which allows host-only access to the machine + # using a specific IP. + # config.vm.network "private_network", ip: "192.168.33.10" + + # Create a public network, which generally matched to bridged network. + # Bridged networks make the machine appear as another physical device on + # your network. + # config.vm.network "public_network" + + # Share an additional folder to the guest VM. The first argument is + # the path on the host to the actual folder. The second argument is + # the path on the guest to mount the folder. And the optional third + # argument is a set of non-required options. + # config.vm.synced_folder "../data", "/vagrant_data" + + # Provider-specific configuration so you can fine-tune various + # backing providers for Vagrant. These expose provider-specific options. + # Example for VirtualBox: + # + config.vm.provider "virtualbox" do |vb| + # Display the VirtualBox GUI when booting the machine + # Customize the amount of memory on the VM: + vb.memory = "1024" + end + # + # View the documentation for the provider you are using for more + # information on available options. + + # Enable provisioning with a shell script. Additional provisioners such as + # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the + # documentation for more information about their specific syntax and use. + config.vm.provision "shell", inline: <<-SHELL + apt-get install -y apache2 + rm -rf /var/www/html + ln -s /vagrant /var/www/html + SHELL +end diff --git a/index.html b/index.html index fc92da2..3e4a936 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - Theta42 - Start Here + Theta42 - blah diff --git a/start_server b/start_server deleted file mode 100755 index 469bb9f..0000000 --- a/start_server +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -python -m SimpleHTTPServer 8000 From 87121c5c38e4c1b0ed31eebc35072b0aa5537aa8 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Fri, 24 May 2019 02:17:56 -0400 Subject: [PATCH 2/2] git ignore file --- .gitignore | 1 + .../default/virtualbox/action_provision | 1 - .../default/virtualbox/action_set_name | 1 - .vagrant/machines/default/virtualbox/box_meta | 1 - .../machines/default/virtualbox/creator_uid | 1 - .vagrant/machines/default/virtualbox/id | 1 - .../machines/default/virtualbox/index_uuid | 1 - .../machines/default/virtualbox/private_key | 27 ------------------- .../default/virtualbox/synced_folders | 1 - .../machines/default/virtualbox/vagrant_cwd | 1 - .vagrant/rgloader/loader.rb | 9 ------- 11 files changed, 1 insertion(+), 44 deletions(-) create mode 100644 .gitignore delete mode 100644 .vagrant/machines/default/virtualbox/action_provision delete mode 100644 .vagrant/machines/default/virtualbox/action_set_name delete mode 100644 .vagrant/machines/default/virtualbox/box_meta delete mode 100644 .vagrant/machines/default/virtualbox/creator_uid delete mode 100644 .vagrant/machines/default/virtualbox/id delete mode 100644 .vagrant/machines/default/virtualbox/index_uuid delete mode 100644 .vagrant/machines/default/virtualbox/private_key delete mode 100644 .vagrant/machines/default/virtualbox/synced_folders delete mode 100644 .vagrant/machines/default/virtualbox/vagrant_cwd delete mode 100644 .vagrant/rgloader/loader.rb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..94695ea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vagrant/ \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/action_provision b/.vagrant/machines/default/virtualbox/action_provision deleted file mode 100644 index b5b59e6..0000000 --- a/.vagrant/machines/default/virtualbox/action_provision +++ /dev/null @@ -1 +0,0 @@ -1.5:973516fd-bf5a-4aeb-8f1f-eb0f21bcd6db \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/action_set_name b/.vagrant/machines/default/virtualbox/action_set_name deleted file mode 100644 index 5eef7f0..0000000 --- a/.vagrant/machines/default/virtualbox/action_set_name +++ /dev/null @@ -1 +0,0 @@ -1558676899 \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/box_meta b/.vagrant/machines/default/virtualbox/box_meta deleted file mode 100644 index 03ece56..0000000 --- a/.vagrant/machines/default/virtualbox/box_meta +++ /dev/null @@ -1 +0,0 @@ -{"name":"generic/ubuntu1604","version":"1.9.12","provider":"virtualbox","directory":"boxes/generic-VAGRANTSLASH-ubuntu1604/1.9.12/virtualbox"} \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/creator_uid b/.vagrant/machines/default/virtualbox/creator_uid deleted file mode 100644 index e37d32a..0000000 --- a/.vagrant/machines/default/virtualbox/creator_uid +++ /dev/null @@ -1 +0,0 @@ -1000 \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/id b/.vagrant/machines/default/virtualbox/id deleted file mode 100644 index 387c9f6..0000000 --- a/.vagrant/machines/default/virtualbox/id +++ /dev/null @@ -1 +0,0 @@ -973516fd-bf5a-4aeb-8f1f-eb0f21bcd6db \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/index_uuid b/.vagrant/machines/default/virtualbox/index_uuid deleted file mode 100644 index bb9584e..0000000 --- a/.vagrant/machines/default/virtualbox/index_uuid +++ /dev/null @@ -1 +0,0 @@ -7fd2eeb1061a4c759766fedd15ede509 \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/private_key b/.vagrant/machines/default/virtualbox/private_key deleted file mode 100644 index b0e1ed8..0000000 --- a/.vagrant/machines/default/virtualbox/private_key +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEAzqw6TOaifGR895FgoJdeUYPl55Y76LxhCB2L2rAfspekm6Ld -PcWd4TqeaID0IAB8WL2pFOdAAYRuJQyLDQ4tNmviTssn5iG1g2AYDJg90HjHsBiw -LpSxAZycT7lLdUGDfhiIsvM57UG209q8GWEYQPsKjlruBK9t0guCOdG32YQ2kkqe -tY+DQC40CVVRgBb0IHurwQwBLwiVcGqnIFYCX14ouOMVIlT6o5i1Y9udjfbPlPNt -9ovQ+qIBp2a8TDKLD0OX3h8xSiyV0pqX6+1ij2DCkMHlD7MdxmkgOTYLBcVsKKFi -8Ia+oiYcpQOHwqoS7jwizQKzS89G2ZpjIUBSywIDAQABAoIBAQCPK5BXpY36TkKj -3fnqRfH41j516AUofRda39z6afgLaDGH/5L0L+nnFQyXqH11jeCWOQzghjI42tzS -nZXWPXPkt2fW3bWOHtv3XqJKV0y7FnB+9RtXqXnVfABs2hgD6paEy8om7Ye7bEKT -EHwtuK1slnwBkcxBQqX5VC+qjjWmYEhRWuHe5ZoB/XmJSB6vcsMVSU5HW6zQ3ZeL -n4v9/ZXKppQwLVIFKviDK3cGhvQBUBPNm+gZy0Chgqz1rgTmbGNZjaGcbtswwP2V -Ev4Qup4WinF1Mi/zrNlnc2SgUOFRFMX5IkvNzTyhifB/861BmdyI9h1vLsZGD5bb -XaLS0nLBAoGBAP/E7mZXb6tyQ2mthlbzQcruJHO+Cu3OyhkWRs807cAtkT8kGVbD -LH9byDcbvF1nVt3r+U1MNg7YAx4BKjbcAP5MtABtIWVFqSse08t6vo0kF2on5EkR -bpDCcCa+IR8XKqdlNooL7Wll6SC8of7AUJJ4KKfGNAwsRunfSFYvOvN3AoGBAM7b -9TcvTZRd9Oucn1e0ee8YMnqiumjhEKbLPHnJ4ax5ATOdK4evJ8Xbqbs22zXRtFmb -Wv3xi4QU+o/JoY2rGaGoWKy4wkx+VQ2PjMTuz5FXY9Mzke49te3XvNHaadrTAgfx -sufHXJnazvLrj22NbdtjKPZIX6awnnB+bDmC+ahNAoGBAO6K+hnDJKhPKmZua6O+ -vrcIQkEcls7SlZSuPR5V7APXu+aawXM1FtQ1gtc67ARlNBRIWDxqfuR7PPUH+xot -OFP0r9DR91qfjLZlyvy1HvE+HwRn7jbjpi4m2jiYDQYVMjfrYuF/XE53uOVKaP/S -15KztJ89cR+FUCIhmDKhXCbjAoGALU2s8a4Rbon5RtShbSLghYWmIIedDbUk4XKn -RwD4xL4njjdAvlGVA1ctYAwOjEXmGq3UisMoy/+QNIdzM0Sis23cJc+89eXBGNw0 -dzjaCrm56hpkPmoTewiBmPAduMf3rOe5R9u4oxVxt2/xlIuh4Kdh5DZLhIUv3fFC -IIJXzQ0CgYB7BmEYhBSbMkcT7aCw7clTMDq4899r6v5sAt55KSaIH0gtadsmLmuD -tqq3kvvLLKjz0kL4LfKlTh2RTiX06ygazkNoMONLNya4vdQfrw5LSw9r2IeH1fcq -dKAiKfwB7fkXnkFIEXTx98KSTG/UQr+sVDgNuuiCBQZ0PYhGcLZU0Q== ------END RSA PRIVATE KEY----- diff --git a/.vagrant/machines/default/virtualbox/synced_folders b/.vagrant/machines/default/virtualbox/synced_folders deleted file mode 100644 index 3914260..0000000 --- a/.vagrant/machines/default/virtualbox/synced_folders +++ /dev/null @@ -1 +0,0 @@ -{"virtualbox":{"/vagrant":{"disabled":false,"guestpath":"/vagrant","hostpath":"/home/william/dev/git-hosting/gitea-automation","__vagrantfile":true}}} \ No newline at end of file diff --git a/.vagrant/machines/default/virtualbox/vagrant_cwd b/.vagrant/machines/default/virtualbox/vagrant_cwd deleted file mode 100644 index 1b3d413..0000000 --- a/.vagrant/machines/default/virtualbox/vagrant_cwd +++ /dev/null @@ -1 +0,0 @@ -/home/william/dev/git-hosting/gitea-automation \ No newline at end of file diff --git a/.vagrant/rgloader/loader.rb b/.vagrant/rgloader/loader.rb deleted file mode 100644 index c3c05b0..0000000 --- a/.vagrant/rgloader/loader.rb +++ /dev/null @@ -1,9 +0,0 @@ -# This file loads the proper rgloader/loader.rb file that comes packaged -# with Vagrant so that encoded files can properly run with Vagrant. - -if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] - require File.expand_path( - "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) -else - raise "Encoded files can't be read outside of the Vagrant installer." -end