-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
115 lines (100 loc) · 4.03 KB
/
install
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
104
105
106
107
108
109
110
111
112
113
114
115
The following instructions are for manually building/
installing an instance of Omega from scratch on a
freshly installed rpm based system. Similar instructions
are supported on other platforms as well, see the
https://github.com/movitto/omega/wiki/Install
document on the Omega wiki for specifics.
*Note* some specific components below may have been
updated since the writing of this doc, make sure to
check the versions available and use the latest
stable and/or dev/testing revisions desired
# Build Omega
- sudo yum install git rubygem-rake ruby-devel gcc nodejs
- gem install middleman i18n
- git clone http://github.com/movitto/omega
- git clone http://github.com/movitto/omega-conf
- git clone http://github.com/movitto/rjr
- cd omega
- rake package
- ln -s ~/omega-conf/release/omega-content/* site/source/
- rake site:build
- cd
# Build Omega RPM
- sudo yum install rpm-build
- mkdir -p rpmbuild/SOURCES
- ln -s ~/omega/pkg/omega-0.6.1.tgz ~/omega-conf/contrib/omega-server.init \
~/omega-conf/contrib/omega-backup.cron ~/rpmbuild/SOURCES
- rpmbuild -ba omega-conf/contrib/omega.spec
# Install Omega Deps
- sudo yum install gcc-c++ openssl-devel libcurl-devel
- sudo gem install em-http-request --version 1.0.3
- sudo gem install rjr curb eventmachine_httpserver em-websocket
em-websocket-client amqp
# Install Omega
- sudo yum install rpmbuild/RPMS/noarch/omega-0.8.2-1.noarch.rpm \
rpmbuild/RPMS/noarch/omega-doc-0.8.2-1.noarch.rpm
- cd /var/www/
- sudo cp -r ~/omega/site/build omega-0.8.2
- sudo ln -s omega-0.8.2 omega
- cd
# Configure Omega
- /etc/omega.yml - omega-server config
- /var/www/omega/javascripts/config.js - web frontend config
At a minimum for a typical production install make sure to change passwords
omega.yml and server location in config.js. Other options such as user
registration and email settings may require additional config depending
on your setup.
# Start Omega
- sudo setenforce 0 # not ideal but this saves us a few steps
- sudo service rabbitmq-server start
- sudo cp ~/omega-conf/release/httpd.conf /etc/httpd/conf.d/omega.conf
- sudo firewall-cmd --add-port=80/tcp
- sudo firewall-cmd --add-port=8080/tcp
- sudo service httpd start
- sudo service omega-server start
# Seed Data
/usr/share/omega/examples contains various scripts to seed and run
a universe. *Note* If you update the omega config in /etc/omega.yml,
to change the admin password, server location, or other, make sure that
change is reflected in the script you run.
- export RUBYLIB='/usr/share/omega/lib'
- /usr/share/omega/examples/universes/small.rb
- /usr/share/omega/examples/users.rb Anubis sibuna Athena regular_user
# Access Omega
- Open a web browser and navigate to http://<ip-address>/womega
# Updating Omega:
Assuming the previous was done to build/install Omega, the following
will update a running instance to the latest HEAD
- # cd into omega, omega-conf, and rjr, and run:
- git pull
- cd omega
- Bump release in Rakefile if desired
- rake package
- rake site:build
- cd
- # If the version of the package changed (see the omega Rakefile or pkg/ dir)
- rm rpmbuild/SOURCES/omega-0.8.1.tgz
- ln -s ~/omega/pkg/omega-0.8.2.tgz ~/rpmbuild/SOURCES/
- rpmbuild -ba omega-conf/contrib/omega.spec
# Updating an Omega Install:
- # optionally take a backup at this point (not covered here)
- sudo service omega-server stop
- sudo yum remove omega omega-doc
- sudo gem install rjr
- sudo yum install rpmbuild/RPMS/noarch/omega-0.8.2-1.noarch.rpm \
rpmbuild/RPMS/noarch/omega-doc-0.8.2-1.noarch.rpm
- sudo cp /etc/omega.yml.rpmsave /etc/omega.yml # restore configuration
- sudo chown omega.omega /etc/omega.yml
- sudo service omega-server start
- cd /var/www/
- sudo rm omega
- sudo cp ~/omega/site/build omega-0.8.2
- sudo chown -R apache.apache omega-0.8.2
- sudo ln -s omega-0.8.2 omega
- set config options in omega-0.8.2/javascripts/config.js
- sudo service httpd restart
- reseed server / restore backup
# Removing an Omega Install:
- sudo yum remove omega omega-doc
- sudo rm -rf /var/www/omega*
- sudo rm -rf /etc/omega.yml