This repository was archived by the owner on Feb 14, 2018. It is now read-only.
File tree 3 files changed +49
-0
lines changed
3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ luac.out
42
42
# npm
43
43
npm-debug.log
44
44
45
+ # Vagrant
46
+ .vagrant /
47
+
45
48
# Other
46
49
* .lua.swp
47
50
lib /
Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ Vagrant . configure ( 2 ) do |config |
5
+ config . vm . box = "ubuntu/trusty64"
6
+
7
+ # copy over handy configuration from host, like Git settings and SSH key
8
+ config . vm . provision "file" , source : "~/.gitconfig" , destination : ".gitconfig"
9
+ config . vm . provision "file" , source : "~/.ssh/id_rsa" , destination : ".ssh/id_rsa"
10
+
11
+ # run provisioning script
12
+ config . vm . provision :shell , :path => "provision-vagrant.sh"
13
+ end
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [ -e " /etc/vagrant-provisioned" ];
4
+ then
5
+ echo " Vagrant provisioning already completed. Skipping..."
6
+ exit 0
7
+ else
8
+ echo " Starting Vagrant provisioning process..."
9
+ fi
10
+
11
+ host=' nginx-jwt'
12
+ # Change the hostname so we can easily identify what environment we're on:
13
+ echo $host > /etc/hostname
14
+ # Update /etc/hosts to match new hostname to avoid "Unable to resolve hostname" issue:
15
+ echo ' 127.0.0.1 $host' >> /etc/hosts
16
+ # Use hostname command so that the new hostname takes effect immediately without a restart:
17
+ hostname $host
18
+
19
+ # Install core components
20
+ apt-get update
21
+ apt-get install -y make g++ curl git vim nfs-common portmap build-essential libssl-dev
22
+
23
+ # Install Node.js
24
+ curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
25
+ apt-get install --yes nodejs
26
+
27
+ # Install Docker
28
+ curl -sSL https://get.docker.com/ubuntu | sh
29
+
30
+ # Vim settings:
31
+ echo ' syntax on' > /home/vagrant/.vimrc
32
+
33
+ touch /etc/vagrant-provisioned
You can’t perform that action at this time.
0 commit comments