File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # NET Core 1.0 Boilerplate
5
+ # Repo: http://github.com/SourceCode/netcoreboiler
6
+ # License: MIT
7
+
8
+ # Configure Vagrant
9
+ Vagrant . configure ( "2" ) do |config |
10
+ # Include the ubuntu/trusty64 image
11
+ config . vm . box = "ubuntu/trusty64"
12
+ # Run the bootstrap via shell on boot
13
+ config . vm . provision :shell , path : "vagrant/bootstrap.sh"
14
+ end
Original file line number Diff line number Diff line change
1
+ # NET Core 1.0 Boilerplate
2
+ # Repo: http://github.com/SourceCode/netcoreboiler
3
+ # License: MIT
4
+
5
+ # This file bootstraps the required repositories
6
+
7
+ # Install essential build tools
8
+ sudo apt-get update -y
9
+ sudo apt-get upgrade -y
10
+ sudo apt-get install -y build-essential
11
+
12
+ # Allows management of source repositories
13
+ sudo apt-get install software-properties-common -y
14
+
15
+
16
+ # Install unzip and curl
17
+ sudo apt-get install -y unzip curl mlocate
18
+
19
+ # Install Node JS
20
+ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
21
+ sudo apt-get install -y nodejs
22
+
23
+ # Install NET Core 1.0
24
+ sudo sh -c ' echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
25
+ sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
26
+ sudo apt-get update
27
+ sudo apt-get install -y dotnet-dev-1.0.0-preview2-003121
28
+
29
+ if [ ! -d " hwapp" ]; then
30
+ # First time provision so lets build and test an app in .NET
31
+ mkdir hwapp
32
+ cd hwapp
33
+ dotnet new
34
+ dotnet restore
35
+ dotnet run
36
+ fi
37
+
38
+ # Optional Installs
39
+ # You can uncomment blocks to install the daemon, service, or software as needed
40
+
41
+ # Apache CouchDB
42
+ # sudo add-apt-repository ppa:couchdb/stable -y
43
+ # sudo apt-get update
44
+ # sudo apt-get remove couchdb couchdb-bin couchdb-common -yf
45
+ # sudo apt-get install couchdb -y
46
+ # curl localhost:5984
47
+
48
+ # Update Locate Command
49
+ echo ' '
50
+ echo ' Updating locate command cache'
51
+ sudo updatedb
52
+
53
+ # Everything is finished
54
+ echo " Everything is built and running. Where would you like to go today?"
You can’t perform that action at this time.
0 commit comments