xnlogic 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/xnlogic/cli/application.rb +57 -17
- data/lib/xnlogic/cli.rb +2 -0
- data/lib/xnlogic/templates/application/gemspec.tt +4 -4
- data/lib/xnlogic/templates/vagrant/Vagrantfile.tt +5 -0
- data/lib/xnlogic/templates/vagrant/config/vagrant.provision.tt +2 -15
- data/lib/xnlogic/templates/vagrant/config/vagrant.up.tt +25 -0
- data/lib/xnlogic/templates/vagrant/{config/transactor.properties → datomic/free.properties.tt} +0 -0
- data/lib/xnlogic/templates/vagrant/datomic/{update_datomic.sh.tt → get_datomic_jar.sh.tt} +0 -3
- data/lib/xnlogic/templates/vagrant/datomic/install_free_transactor.sh.tt +20 -0
- data/lib/xnlogic/templates/vagrant/datomic/install_pro_transactor.sh.tt +24 -0
- data/lib/xnlogic/templates/vagrant/datomic/mysql.properties.tt +131 -0
- data/lib/xnlogic/templates/vagrant/datomic/pom.xml.tt +1 -1
- data/lib/xnlogic/templates/vagrant/datomic/pro.properties.tt +104 -0
- data/lib/xnlogic/version.rb +1 -1
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3536880927910f75a9baed65b5c2f4decd31a29
|
4
|
+
data.tar.gz: 6bc3eeccae6bc2d897b85ad0b5bfe97de2880c1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1c1f2be3dffaa49f778ff4aff3706aa9c6af90a99f68f31cccb80d7a71ed03ae45353fcf90c4469dffbec4f3e8bad3de9821aea91651b901333004fb11b60f2
|
7
|
+
data.tar.gz: e7d9e373bed6eb283d483c9c13f3d2e22368a941afa109e333bd8160fd400a3d49feaf6590d57cbffbd301faa2976a7ab3aaecbdab858713451c0ab2795f8e11
|
@@ -137,27 +137,53 @@ module Xnlogic
|
|
137
137
|
write_options
|
138
138
|
end
|
139
139
|
|
140
|
+
def datomic_pro?
|
141
|
+
options.fetch('datomic_pro', options['datomic_mysql'])
|
142
|
+
end
|
143
|
+
|
144
|
+
def check_arguments
|
145
|
+
if datomic_pro?
|
146
|
+
if options['datomic_license']
|
147
|
+
unless datomic_license
|
148
|
+
Xnlogic.ui.warn "[WARN] Datomic license file '#{ options['datomic_license'] }' not found."
|
149
|
+
end
|
150
|
+
else
|
151
|
+
Xnlogic.ui.warn "[WARN] No datomic-license specified. Pro transacter will not start."
|
152
|
+
end
|
153
|
+
unless options['datomic_username'] and options['datomic_key']
|
154
|
+
Xnlogic.ui.warn "[WARN] No datomic-username or datomic-key. Will not be able to fetch datomic pro jar dependencies."
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
def datomic_license
|
160
|
+
if options['datomic_license'] and File.exist? options['datomic_license']
|
161
|
+
File.read(options['datomic_license']).sub(/^license-key=/, '')
|
162
|
+
end
|
163
|
+
end
|
140
164
|
|
141
165
|
def template_options
|
142
166
|
namespaced_path = name
|
143
167
|
constant_name = namespaced_path.split('_').map{|p| p[0..0].upcase + p[1..-1] }.join
|
144
168
|
git_user_name = `git config user.name`.chomp
|
145
169
|
git_user_email = `git config user.email`.chomp
|
170
|
+
check_arguments
|
146
171
|
{
|
147
|
-
:name
|
148
|
-
:namespaced_path
|
149
|
-
:constant_name
|
150
|
-
:author
|
151
|
-
:email
|
152
|
-
:vm_cpus
|
153
|
-
:vm_memory
|
154
|
-
:xn_key
|
155
|
-
:datomic_pro
|
156
|
-
:
|
157
|
-
:
|
158
|
-
:
|
159
|
-
:
|
160
|
-
:
|
172
|
+
:name => name,
|
173
|
+
:namespaced_path => namespaced_path,
|
174
|
+
:constant_name => constant_name,
|
175
|
+
:author => git_user_name.empty? ? "TODO: Write your name" : git_user_name,
|
176
|
+
:email => git_user_email.empty? ? "TODO: Write your email address" : git_user_email,
|
177
|
+
:vm_cpus => options['cpus'],
|
178
|
+
:vm_memory => options['memory'],
|
179
|
+
:xn_key => options['key'],
|
180
|
+
:datomic_pro => datomic_pro?,
|
181
|
+
:datomic_license => datomic_license,
|
182
|
+
:datomic_mysql => options['datomic_mysql'],
|
183
|
+
:datomic_optional_version => options['datomic_version'],
|
184
|
+
:datomic_version => (options['datomic_version'] || "0.9.5130"),
|
185
|
+
:datomic_username => options.fetch('datomic_username', '[username from my.datomic.com]'),
|
186
|
+
:datomic_key => options.fetch('datomic_key', '[key from my.datomic.com]'),
|
161
187
|
}
|
162
188
|
end
|
163
189
|
|
@@ -176,20 +202,34 @@ module Xnlogic
|
|
176
202
|
|
177
203
|
|
178
204
|
def generate_vm_config
|
205
|
+
transactor_properties = if options['datomic_mysql']
|
206
|
+
"datomic/mysql.properties.tt"
|
207
|
+
elsif options['datomic_pro']
|
208
|
+
"datomic/pro.properties.tt"
|
209
|
+
else
|
210
|
+
"datomic/free.properties.tt"
|
211
|
+
end
|
212
|
+
datomic_installer = if datomic_pro?
|
213
|
+
'datomic/install_pro_transactor.sh.tt'
|
214
|
+
else
|
215
|
+
'datomic/install_free_transactor.sh.tt'
|
216
|
+
end
|
179
217
|
base_templates = {
|
180
218
|
"Vagrantfile.tt" => "Vagrantfile",
|
181
219
|
"Gemfile.tt" => "Gemfile",
|
182
220
|
"config/vagrant.provision.tt" => "config/vagrant.provision",
|
221
|
+
"config/vagrant.up.tt" => "config/vagrant.up",
|
183
222
|
"config/datomic.conf" => "config/datomic.conf",
|
184
223
|
"config/start.sh" => "config/start.sh",
|
185
|
-
|
224
|
+
transactor_properties => "config/transactor.properties",
|
186
225
|
"config/xnlogic.conf.tt" => "config/xnlogic.conf",
|
187
|
-
|
226
|
+
datomic_installer => 'script/install_transactor.sh',
|
188
227
|
}
|
189
228
|
|
190
|
-
if
|
229
|
+
if datomic_pro?
|
191
230
|
base_templates['datomic/m2_settings.xml.tt'] = 'config/m2_settings.xml'
|
192
231
|
base_templates['datomic/pom.xml.tt'] = 'config/pom.xml'
|
232
|
+
base_templates['datomic/get_datomic_jar.sh.tt'] = 'script/get_datomic_jar.sh'
|
193
233
|
end
|
194
234
|
|
195
235
|
_generate_templates(base_templates, 'vagrant', template_options, 'Creating Vagrant configuration')
|
data/lib/xnlogic/cli.rb
CHANGED
@@ -79,6 +79,8 @@ module Xnlogic
|
|
79
79
|
"Your my.datomic.com account username, needed for Datomic jar downloads"
|
80
80
|
method_option "datomic_key", type: :string, banner:
|
81
81
|
"Your my.datomic.com download key, needed for Datomic jar downloads"
|
82
|
+
method_option "datomic_license", type: :string, banner:
|
83
|
+
"File location of your my.datomic.com license key, needed for the Datomic Pro transactor"
|
82
84
|
end
|
83
85
|
|
84
86
|
desc "application [NAME] [OPTIONS]", <<EOD
|
@@ -26,12 +26,12 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_dependency 'pacer-neo4j'
|
27
27
|
s.add_dependency 'pacer-mcfly'
|
28
28
|
<% if config[:datomic_pro] -%>
|
29
|
-
s.add_dependency 'pacer-mcfly-pro'<%= ", " + config[:
|
30
|
-
|
29
|
+
s.add_dependency 'pacer-mcfly-pro'<%= ", " + config[:optional_datomic_version].inspect if config[:optional_datomic_version] %>
|
30
|
+
<% if config[:datomic_mysql] -%>
|
31
31
|
s.add_dependency 'pacer-mcfly-mysql'
|
32
|
-
|
32
|
+
<% end -%>
|
33
33
|
<% else -%>
|
34
|
-
s.add_dependency 'pacer-mcfly-free'<%= ", " + config[:
|
34
|
+
s.add_dependency 'pacer-mcfly-free'<%= ", " + config[:optional_datomic_version].inspect if config[:optional_datomic_version] %>
|
35
35
|
<% end -%>
|
36
36
|
|
37
37
|
s.add_dependency 'jruby-openssl', '0.9.6'
|
@@ -20,7 +20,7 @@ printf "%$(tput cols)s\n"|tr " " "-"
|
|
20
20
|
hr
|
21
21
|
echo "Configuring environment"
|
22
22
|
export XN_CLIENT=<%= config[:name] %>
|
23
|
-
export DATOMIC_VERSION
|
23
|
+
export DATOMIC_VERSION=<%= config[:datomic_version] %>
|
24
24
|
export DEBIAN_FRONTEND=noninteractive
|
25
25
|
export LANG=en_US.UTF-8
|
26
26
|
export LC_ALL=en_US.UTF-8
|
@@ -74,17 +74,7 @@ if [ -d $HOME/$XN_CLIENT/assets ]; then
|
|
74
74
|
fi
|
75
75
|
|
76
76
|
## Uncomment to upgrade Datomic
|
77
|
-
#
|
78
|
-
# hr
|
79
|
-
# echo "Installing Datomic Service"
|
80
|
-
# cd $HOME
|
81
|
-
# wget https://s3.amazonaws.com/xn-datomic/datomic-free-${datomic_version}.zip?dl=1 --quiet -O datomic.zip
|
82
|
-
# unzip datomic.zip
|
83
|
-
# rm datomic.zip
|
84
|
-
# sudo mv datomic-free-${datomic_version} /usr/local/lib/datomic
|
85
|
-
# sudo mkdir -p /etc/datomic
|
86
|
-
# sudo rm -f /etc/datomic/transactor.properties
|
87
|
-
# sudo ln -s $HOME/$XN_CLIENT/config/transactor.properties /etc/datomic/transactor.properties
|
77
|
+
# script/install_transactor.sh
|
88
78
|
|
89
79
|
hr
|
90
80
|
echo "Starting Datomic Service"
|
@@ -109,9 +99,6 @@ echo "alias gd='git diff -w'" >> ~/.zshrc
|
|
109
99
|
echo "alias gdc='git diff -w --cached'" >> ~/.zshrc
|
110
100
|
|
111
101
|
sudo apt-get install -y dos2unix
|
112
|
-
silent dos2unix $SERVER_START_SCRIPT $HOME/$XN_CLIENT/script/*
|
113
|
-
chmod +x $SERVER_START_SCRIPT
|
114
|
-
chmod +x $HOME/$XN_CLIENT/script/update_datomic.sh
|
115
102
|
|
116
103
|
git config --global --add alias.co "checkout"
|
117
104
|
git config --global --add alias.ci "commit"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#! /bin/bash
|
2
|
+
|
3
|
+
silent() {
|
4
|
+
if [[ $debug ]] ; then
|
5
|
+
"$@"
|
6
|
+
else
|
7
|
+
"$@" &>/dev/null
|
8
|
+
fi
|
9
|
+
}
|
10
|
+
hr() {
|
11
|
+
printf "%$(tput cols)s\n"|tr " " "-"
|
12
|
+
}
|
13
|
+
|
14
|
+
export XN_CLIENT=<%= config[:name] %>
|
15
|
+
SERVER_START_SCRIPT="$HOME/$XN_CLIENT/config/start.sh"
|
16
|
+
silent dos2unix $SERVER_START_SCRIPT $HOME/$XN_CLIENT/script/*
|
17
|
+
chmod +x $SERVER_START_SCRIPT
|
18
|
+
chmod +x $HOME/$XN_CLIENT/script/*
|
19
|
+
|
20
|
+
<% if config[:datomic_pro] -%>
|
21
|
+
silent $HOME/$XN_CLIENT/script/get_datomic_jar.sh
|
22
|
+
if [ $? -ne 0 ]; then
|
23
|
+
>&2 echo "Failed to get Datomic dependency. Run $HOME/$XN_CLIENT/script/get_datomic_jar.sh for details."
|
24
|
+
fi
|
25
|
+
<% end -%>
|
data/lib/xnlogic/templates/vagrant/{config/transactor.properties → datomic/free.properties.tt}
RENAMED
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#! /bin/bash
|
2
|
+
|
3
|
+
echo "Installing Datomic Free <%= config[:datomic_version] %> Transactor"
|
4
|
+
cd $HOME
|
5
|
+
wget https://my.datomic.com/downloads/free/<%=config[:datomic_version]%> --quiet -O datomic.zip
|
6
|
+
unzip datomic.zip
|
7
|
+
rm datomic.zip
|
8
|
+
sudo mv datomic-free-<%= config[:datomic_version] %> /usr/local/lib/datomic
|
9
|
+
sudo mkdir -p /opt/datomic
|
10
|
+
sudo chown vagrant:vagrant /opt/datomic
|
11
|
+
mv datomic-free-<%=config[:datomic_version]%> /opt/datomic
|
12
|
+
sudo mkdir -p /etc/datomic
|
13
|
+
sudo rm -f /etc/datomic/transactor.properties
|
14
|
+
sudo ln -s $HOME/$XN_CLIENT/config/transactor.properties /etc/datomic/transactor.properties
|
15
|
+
sudo service datomic stop
|
16
|
+
rm /opt/datomic/current
|
17
|
+
ln -s /opt/datomic/datomic-free-<%=config[:datomic_version]%> /opt/datomic/current
|
18
|
+
sudo service datomic start
|
19
|
+
cd -
|
20
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#! /bin/bash
|
2
|
+
|
3
|
+
echo "Installing Datomic Pro <%=config[:datomic_version]%> Transactor"
|
4
|
+
cd $HOME
|
5
|
+
wget --http-user=<%=config[:datomic_username]%> --http-password=<%=config[:datomic_key]%> https://my.datomic.com/repo/com/datomic/datomic-pro/<%=config[:datomic_version]%>/datomic-pro-<%=config[:datomic_version]%>.zip -O datomic.zip
|
6
|
+
unzip datomic.zip
|
7
|
+
rm datomic.zip
|
8
|
+
sudo mkdir -p /opt/datomic
|
9
|
+
sudo chown vagrant:vagrant /opt/datomic
|
10
|
+
mv datomic-pro-<%=config[:datomic_version]%> /opt/datomic
|
11
|
+
sudo mkdir -p /etc/datomic
|
12
|
+
sudo rm -f /etc/datomic/transactor.properties
|
13
|
+
sudo ln -s $HOME/$XN_CLIENT/config/transactor.properties /etc/datomic/transactor.properties
|
14
|
+
<% if config[:datomic_mysql] -%>
|
15
|
+
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.35.tar.gz -O mysql.tgz
|
16
|
+
tar -xvzf mysql.tgz --include '*bin.jar'
|
17
|
+
sudo mv mysql-connector-java-5.1.35/*.jar /opt/datomic/datomic-pro-<%=config[:datomic_version]%>/lib
|
18
|
+
rm mysql.tgz
|
19
|
+
<% end -%>
|
20
|
+
sudo service datomic stop
|
21
|
+
rm /opt/datomic/current
|
22
|
+
ln -s /opt/datomic/datomic-pro-<%=config[:datomic_version]%> /opt/datomic/current
|
23
|
+
sudo service datomic start
|
24
|
+
cd -
|
@@ -0,0 +1,131 @@
|
|
1
|
+
################################################################
|
2
|
+
|
3
|
+
protocol=sql
|
4
|
+
host=localhost
|
5
|
+
port=4334
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
################################################################
|
10
|
+
# See http://docs.datomic.com/storage.html
|
11
|
+
|
12
|
+
license-key=<%= config[:datomic_license] %>
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
################################################################
|
17
|
+
# See http://docs.datomic.com/storage.html
|
18
|
+
|
19
|
+
sql-url=jdbc:mysql://localhost:3306/datomic
|
20
|
+
sql-user=datomic
|
21
|
+
sql-password=datomic
|
22
|
+
|
23
|
+
# The Postgres driver is included with Datomic. For other SQL
|
24
|
+
# databases, you will need to install the driver on the
|
25
|
+
# transactor classpath, by copying the file into lib/,
|
26
|
+
# and place the driver on your peer's classpath.
|
27
|
+
sql-driver-class=com.mysql.jdbc.Driver
|
28
|
+
|
29
|
+
# Driver specified params, as semicolon-separated pairs.
|
30
|
+
# Optional
|
31
|
+
# sql-driver-params=<param1=val1¶m2=val2...>
|
32
|
+
|
33
|
+
# The query used to validate JDBC connection.
|
34
|
+
# Optional
|
35
|
+
# sql-validation-query=select 1
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
################################################################
|
40
|
+
# See http://docs.datomic.com/capacity.html
|
41
|
+
|
42
|
+
|
43
|
+
# Recommended settings for -Xmx4g production usage.
|
44
|
+
# memory-index-threshold=32m
|
45
|
+
# memory-index-max=512m
|
46
|
+
# object-cache-max=1g
|
47
|
+
|
48
|
+
# Recommended settings for -Xmx1g usage, e.g. dev laptops.
|
49
|
+
memory-index-threshold=32m
|
50
|
+
memory-index-max=256m
|
51
|
+
object-cache-max=128m
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
## OPTIONAL ####################################################
|
56
|
+
|
57
|
+
|
58
|
+
# Set to false to disable SSL between the peers and the transactor.
|
59
|
+
# Default: true
|
60
|
+
# encrypt-channel=true
|
61
|
+
|
62
|
+
# Data directory is used for dev: and free: storage, and
|
63
|
+
# as a temporary directory for all storages.
|
64
|
+
# data-dir=data
|
65
|
+
|
66
|
+
# Transactor will log here, see bin/logback.xml to configure logging.
|
67
|
+
# log-dir=log
|
68
|
+
|
69
|
+
# Transactor will write process pid here on startup
|
70
|
+
# pid-file=transactor.pid
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
## OPTIONAL ####################################################
|
75
|
+
# See http://docs.datomic.com/storage.html
|
76
|
+
# Memcached configuration.
|
77
|
+
|
78
|
+
# memcached=host:port,host:port,...
|
79
|
+
# memcached-username=datomic
|
80
|
+
# memcached-password=datomic
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
## OPTIONAL ####################################################
|
85
|
+
# See http://docs.datomic.com/capacity.html
|
86
|
+
|
87
|
+
|
88
|
+
# Soft limit on the number of concurrent writes to storage.
|
89
|
+
# Default: 4, Miniumum: 2
|
90
|
+
# write-concurrency=4
|
91
|
+
|
92
|
+
# Soft limit on the number of concurrent reads to storage.
|
93
|
+
# Default: 2 times write-concurrency, Miniumum: 2
|
94
|
+
# read-concurrency=8
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
## OPTIONAL ####################################################
|
99
|
+
# See http://docs.datomic.com/aws.html
|
100
|
+
# Optional settings for rotating logs to S3
|
101
|
+
# (Can be auto-generated by bin/datomic ensure-transactor.)
|
102
|
+
|
103
|
+
# aws-s3-log-bucket-id=
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
## OPTIONAL ####################################################
|
108
|
+
# See http://docs.datomic.com/aws.html
|
109
|
+
# Optional settings for Cloudwatch metrics.
|
110
|
+
# (Can be auto-generated by bin/datomic ensure-transactor.)
|
111
|
+
|
112
|
+
aws-cloudwatch-region=us-east-1
|
113
|
+
|
114
|
+
# Pick a unique name to distinguish transactor metrics from different systems.
|
115
|
+
# aws-cloudwatch-dimension-value=
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
## OPTIONAL ####################################################
|
120
|
+
# See http://docs.datomic.com/ha.html
|
121
|
+
|
122
|
+
|
123
|
+
# # The transactor will write a heartbeat into storage on this interval.
|
124
|
+
# A standby transactor will take over if it sees the heartbeat go
|
125
|
+
# unwritten for 2x this interval. If your transactor load leads to
|
126
|
+
# long gc pauses, you can increase this number to prevent the standby
|
127
|
+
# transactor from unnecessarily taking over during a long gc pause.
|
128
|
+
# Default: 5000, Miniumum: 5000
|
129
|
+
# heartbeat-interval-msec=5000
|
130
|
+
|
131
|
+
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<dependency>
|
23
23
|
<groupId>com.datomic</groupId>
|
24
24
|
<artifactId>datomic-pro</artifactId>
|
25
|
-
<version><%= config[:datomic_version]
|
25
|
+
<version><%= config[:datomic_version] %></version>
|
26
26
|
</dependency>
|
27
27
|
</dependencies>
|
28
28
|
</project>
|
@@ -0,0 +1,104 @@
|
|
1
|
+
################################################################
|
2
|
+
|
3
|
+
protocol=dev
|
4
|
+
host=localhost
|
5
|
+
port=4334
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
################################################################
|
10
|
+
# See http://docs.datomic.com/storage.html
|
11
|
+
|
12
|
+
license-key=<%= config[:datomic_license] %>
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## OPTIONAL ####################################################
|
17
|
+
# The dev: and free: protocols typically use three ports
|
18
|
+
# starting with the selected :port, but you can specify the
|
19
|
+
# other ports explicitly, e.g. for virtualization environs
|
20
|
+
# that do not issue contiguous ports.
|
21
|
+
|
22
|
+
# h2-port=4335
|
23
|
+
# h2-web-port=4336
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
################################################################
|
28
|
+
# See http://docs.datomic.com/capacity.html
|
29
|
+
|
30
|
+
|
31
|
+
# Recommended settings for -Xmx4g production usage.
|
32
|
+
# memory-index-threshold=32m
|
33
|
+
# memory-index-max=512m
|
34
|
+
# object-cache-max=1g
|
35
|
+
|
36
|
+
# Recommended settings for -Xmx1g usage, e.g. dev laptops.
|
37
|
+
memory-index-threshold=32m
|
38
|
+
memory-index-max=256m
|
39
|
+
object-cache-max=128m
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
## OPTIONAL ####################################################
|
44
|
+
|
45
|
+
|
46
|
+
# Set to false to disable SSL between the peers and the transactor.
|
47
|
+
# Default: true
|
48
|
+
# encrypt-channel=true
|
49
|
+
|
50
|
+
# Data directory is used for dev: and free: storage, and
|
51
|
+
# as a temporary directory for all storages.
|
52
|
+
# data-dir=data
|
53
|
+
|
54
|
+
# Transactor will log here, see bin/logback.xml to configure logging.
|
55
|
+
# log-dir=log
|
56
|
+
|
57
|
+
# Transactor will write process pid here on startup
|
58
|
+
# pid-file=transactor.pid
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
## OPTIONAL ####################################################
|
63
|
+
# See http://docs.datomic.com/storage.html
|
64
|
+
# Memcached configuration.
|
65
|
+
|
66
|
+
# memcached=host:port,host:port,...
|
67
|
+
# memcached-username=datomic
|
68
|
+
# memcached-password=datomic
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
## OPTIONAL ####################################################
|
73
|
+
# See http://docs.datomic.com/capacity.html
|
74
|
+
|
75
|
+
|
76
|
+
# Soft limit on the number of concurrent writes to storage.
|
77
|
+
# Default: 4, Miniumum: 2
|
78
|
+
# write-concurrency=4
|
79
|
+
|
80
|
+
# Soft limit on the number of concurrent reads to storage.
|
81
|
+
# Default: 2 times write-concurrency, Miniumum: 2
|
82
|
+
# read-concurrency=8
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
## OPTIONAL ####################################################
|
87
|
+
# See http://docs.datomic.com/aws.html
|
88
|
+
# Optional settings for rotating logs to S3
|
89
|
+
# (Can be auto-generated by bin/datomic ensure-transactor.)
|
90
|
+
|
91
|
+
# aws-s3-log-bucket-id=
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
## OPTIONAL ####################################################
|
96
|
+
# See http://docs.datomic.com/aws.html
|
97
|
+
# Optional settings for Cloudwatch metrics.
|
98
|
+
# (Can be auto-generated by bin/datomic ensure-transactor.)
|
99
|
+
|
100
|
+
# aws-cloudwatch-region=
|
101
|
+
|
102
|
+
# Pick a unique name to distinguish transactor metrics from different systems.
|
103
|
+
# aws-cloudwatch-dimension-value=your-system-name
|
104
|
+
|
data/lib/xnlogic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xnlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darrick Wiebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -136,12 +136,17 @@ files:
|
|
136
136
|
- lib/xnlogic/templates/vagrant/Vagrantfile.tt
|
137
137
|
- lib/xnlogic/templates/vagrant/config/datomic.conf
|
138
138
|
- lib/xnlogic/templates/vagrant/config/start.sh
|
139
|
-
- lib/xnlogic/templates/vagrant/config/transactor.properties
|
140
139
|
- lib/xnlogic/templates/vagrant/config/vagrant.provision.tt
|
140
|
+
- lib/xnlogic/templates/vagrant/config/vagrant.up.tt
|
141
141
|
- lib/xnlogic/templates/vagrant/config/xnlogic.conf.tt
|
142
|
+
- lib/xnlogic/templates/vagrant/datomic/free.properties.tt
|
143
|
+
- lib/xnlogic/templates/vagrant/datomic/get_datomic_jar.sh.tt
|
144
|
+
- lib/xnlogic/templates/vagrant/datomic/install_free_transactor.sh.tt
|
145
|
+
- lib/xnlogic/templates/vagrant/datomic/install_pro_transactor.sh.tt
|
142
146
|
- lib/xnlogic/templates/vagrant/datomic/m2_settings.xml.tt
|
147
|
+
- lib/xnlogic/templates/vagrant/datomic/mysql.properties.tt
|
143
148
|
- lib/xnlogic/templates/vagrant/datomic/pom.xml.tt
|
144
|
-
- lib/xnlogic/templates/vagrant/datomic/
|
149
|
+
- lib/xnlogic/templates/vagrant/datomic/pro.properties.tt
|
145
150
|
- lib/xnlogic/ui.rb
|
146
151
|
- lib/xnlogic/ui/shell.rb
|
147
152
|
- lib/xnlogic/ui/silent.rb
|