docker-stack 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/stack/version.rb +1 -1
- data/lib/generators/docker/stack/service/fedora_generator.rb +1 -1
- data/lib/generators/docker/stack/service/postgres_generator.rb +1 -1
- data/lib/generators/docker/stack/service/redis_generator.rb +1 -1
- data/lib/generators/docker/stack/service/solr_generator.rb +1 -1
- data/lib/generators/docker/stack/templates/config/{database.yml → database.yml.erb} +3 -2
- data/lib/generators/docker/stack/templates/config/{fedora.yml → fedora.yml.erb} +2 -2
- data/lib/generators/docker/stack/templates/config/redis.yml.erb +9 -0
- data/lib/generators/docker/stack/templates/config/solr.yml.erb +7 -0
- metadata +5 -5
- data/lib/generators/docker/stack/templates/config/redis.yml +0 -9
- data/lib/generators/docker/stack/templates/config/solr.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e2f003c667b95cdfdade4066005b3f444ad354dc8d38b6d995c0265049f9f9
|
4
|
+
data.tar.gz: 4f24e6d61b246999a575015af732604b7446d640b98caa8ef5173b823f15e04f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f930bcead320565638a1b3d9b829836c631a9c5f4446c778fb083133381b4d8c15a898ecb7cf6938efc5788e95fbede5045389339c78dd8bbb3b826eed8913c
|
7
|
+
data.tar.gz: 414065c75f75b41bacb557e394ede4b7bafeaced01d1a1da9a85cf8ac7ab6f64260d05450f94af3f7a4e91c3812d05c3e1e517abf5b43dab267fef0055135f17
|
data/lib/docker/stack/version.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
default: &default
|
2
2
|
adapter: postgresql
|
3
3
|
host: localhost
|
4
|
-
port: <%= Docker::Stack.port_for(:postgres) %>
|
5
4
|
encoding: unicode
|
6
5
|
pool: 5
|
7
6
|
username: docker
|
@@ -9,14 +8,16 @@ default: &default
|
|
9
8
|
|
10
9
|
development:
|
11
10
|
<<: *default
|
11
|
+
port: <%= Docker::Stack.port_for(:postgres, 'development') %>
|
12
12
|
database: docker_dev
|
13
13
|
|
14
14
|
test:
|
15
15
|
<<: *default
|
16
|
+
port: <%%= Rails.env.development? ? <%= Docker::Stack.port_for(:postgres, 'development') %> : <%= Docker::Stack.port_for(:postgres, 'test') %> %>
|
16
17
|
database: docker_test
|
17
18
|
|
18
19
|
production:
|
19
20
|
adapter: sqlite3
|
20
|
-
pool:
|
21
|
+
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
21
22
|
timeout: 5000
|
22
23
|
database: db/production.sqlite3
|
@@ -1,12 +1,12 @@
|
|
1
1
|
development:
|
2
2
|
user: fedoraAdmin
|
3
3
|
password: fedoraAdmin
|
4
|
-
url: http://127.0.0.1
|
4
|
+
url: http://127.0.0.1:<%%= ENV['FCREPO_DEVELOPMENT_PORT'] || <%= Docker::Stack::port_for(:fedora, 'development') %> %>/rest
|
5
5
|
base_path: /dev
|
6
6
|
test:
|
7
7
|
user: fedoraAdmin
|
8
8
|
password: fedoraAdmin
|
9
|
-
url: http://127.0.0.1
|
9
|
+
url: http://127.0.0.1:<%%= ENV['FCREPO_TEST_PORT'] || <%= Docker::Stack::port_for(:fedora, 'test') %> %>/rest
|
10
10
|
base_path: /test
|
11
11
|
production:
|
12
12
|
user: fedoraAdmin
|
@@ -0,0 +1,9 @@
|
|
1
|
+
development:
|
2
|
+
host: localhost
|
3
|
+
port: <%= Docker::Stack.port_for(:redis, 'development') %>
|
4
|
+
test:
|
5
|
+
host: localhost
|
6
|
+
port: <%= Docker::Stack.port_for(:redis, 'test') %>
|
7
|
+
production:
|
8
|
+
host: <%%= ENV['REDIS_HOST'] || 'localhost' %>
|
9
|
+
port: <%%= ENV['REDIS_PORT'] || 6379 %>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This is a sample config file that points to a solr server for each environment
|
2
|
+
development:
|
3
|
+
url: http://127.0.0.1:<%%= ENV['SOLR_TEST_PORT'] || <%= Docker::Stack.port_for(:solr, 'development') %> %>/solr/development-core
|
4
|
+
test:
|
5
|
+
url: http://127.0.0.1:<%%= ENV['SOLR_TEST_PORT'] || <%= Docker::Stack.port_for(:solr, 'test') %> %>/solr/test-core
|
6
|
+
production:
|
7
|
+
url: http://127.0.0.1:8983/solr/donut
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Klein
|
@@ -225,11 +225,11 @@ files:
|
|
225
225
|
- lib/generators/docker/stack/service/postgres_generator.rb
|
226
226
|
- lib/generators/docker/stack/service/redis_generator.rb
|
227
227
|
- lib/generators/docker/stack/service/solr_generator.rb
|
228
|
-
- lib/generators/docker/stack/templates/config/database.yml
|
229
|
-
- lib/generators/docker/stack/templates/config/fedora.yml
|
228
|
+
- lib/generators/docker/stack/templates/config/database.yml.erb
|
229
|
+
- lib/generators/docker/stack/templates/config/fedora.yml.erb
|
230
230
|
- lib/generators/docker/stack/templates/config/initializers/localstack_stub.rb
|
231
|
-
- lib/generators/docker/stack/templates/config/redis.yml
|
232
|
-
- lib/generators/docker/stack/templates/config/solr.yml
|
231
|
+
- lib/generators/docker/stack/templates/config/redis.yml.erb
|
232
|
+
- lib/generators/docker/stack/templates/config/solr.yml.erb
|
233
233
|
- lib/generators/docker/stack/templates/docker.rake
|
234
234
|
- lib/generators/docker/stack/templates/services/fedora.yml.erb
|
235
235
|
- lib/generators/docker/stack/templates/services/localstack.yml.erb
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# This is a sample config file that points to a solr server for each environment
|
2
|
-
development:
|
3
|
-
url: http://127.0.0.1:<%= ENV['SOLR_TEST_PORT'] || Docker::Stack.port_for(:solr) %>/solr/development-core
|
4
|
-
test:
|
5
|
-
url: http://127.0.0.1:<%= ENV['SOLR_TEST_PORT'] || Docker::Stack.port_for(:solr) %>/solr/test-core
|
6
|
-
production:
|
7
|
-
url: http://127.0.0.1:8983/solr/donut
|