forked from vision-dbms/vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall.Sandbox
104 lines (76 loc) · 2.79 KB
/
Install.Sandbox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
== Begin ==
Choose this install if the intent is to have a vision database
suitable for updating outside a production admin account.
Choose the Install.Admin for production professional use.
These tools and instructions are written using csh as the default shell
Do not introduce any .cshrc or .login yet
1. Create an osvadmin account and login
2. Place the contents of the GIT Repository into ~/vision-open-source
3. Generate executables
cd ~/vision-open-source/software/
setenv PATH `pwd`/builder/:$PATH
cd src/8.0/src
buildRelease 8.0
pushBinaries ../ ~/vision-open-source/software/builds/8.0.0/Linux_x86_64
4. Generate Vision BootNets
4.1: vars
cd ~
setenv osv ~/vision-open-source/
setenv osvAdmin $osv/application
setenv LocalVisionRoot $osvAdmin/localvision
#!!! edit this version per the builds subdir
setenv VisionBin $osv/software/builds/8.0.0/Linux_x86_64/bin
setenv DBbatchvision $VisionBin/batchvision
setenv feedFilePath ; setenv scriptFilePath; setenv updateLogPath
setenv PATH $LocalVisionRoot/adminScripts/:${PATH}
4.2: build bootnets
cd ~/vision-open-source/application/localvision/bootstrap; ls -l
--> remove any existing bootNets - investNet or basicNet from bootstrap if already exists
4.2.1: Create a basicNet
cd ~
csh -f $LocalVisionRoot/bootstrap/scripts/BuildBootDB.cmd
the -f prevents executing any .cshrc
confim stdout echo's
choose B
cd $LocalVisionRoot/bootstrap/basicNet
\rm NDF.UUID
$DBbatchvision -n NDF
2+2
QUIT
4.2.2: Create a investNet
cd ~
csh -f $LocalVisionRoot/bootstrap/scripts/BuildBootDB.cmd
the -f prevents executing any .cshrc
confim stdout echo's
choose I
remove the OS that appears in cwd
cd $LocalVisionRoot/bootstrap/investNet
\rm NDF.UUID
$DBbatchvision -n NDF
2+2
?g
osdPathName
?g
QUIT
5. Prepare for use
Users wishing to use a professional production implementation should follow DBAdmin setup instructions. Users wishing to start from a minimal implemntation or sandbox, continue with these instructions.
The databases are moved out of the git repository into a sandbox space
cd
mkdir -p ~/localvision/sandbox
mkdir -p ~/localvision/sandbox/releases/network && cd ~/localvision/sandbox/releases/network
mv $LocalVisionRoot/bootstrap/investNet investNet
mv $LocalVisionRoot/bootstrap/basicNet basicNet
cd ~/sandbox/localvision
ln -s ~/sandbox/releases/network/investNet network
cd ~/sandbox/releases/network/investNet
pwd > NDF.OSDPATH
whoami > NDF.GURL
cd ~/sandbox/releases/network/basicNet
pwd > NDF.OSDPATH
whoami > NDF.GURL
5.1 Automate starting environment
Recommended startup variables suitable for .cshrc automation
setenv LocalVisionRoot ~/sandbox/localvision
setenv OSDPathName $LocalVisionRoot/network
setenv NDFPathName $OSDPathName/NDF
This is the completion of a non production sandbox release. These two databases are ready for vision use.