generators_rails 0.0.9 → 0.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e1542f932322b9efd084b8243f06afe1804c9d9
4
- data.tar.gz: 224514c139ded34f1951369699fb40a36b6486de
3
+ metadata.gz: aa606c83e8745ac2198f8191d0f5731b26933f78
4
+ data.tar.gz: d52de592f5a9135cae3fbf4d3803a0dc3a511997
5
5
  SHA512:
6
- metadata.gz: b17c5edf3123f353c18af76c5ad957f118de434d0a742af8f1add86e784280eb4d7883e8aa5ec58cb1f122af575d769d583770b92c2eed1ce4506e3ca80d7e73
7
- data.tar.gz: b036d47b7fcbbd7e0a8e82d77ea16d5c393b3b837d6c47f11d6db4f0377869f4d018d502157252134b4a151a6f57af1543d2f38c4057ceafe0f4f05f82723aa9
6
+ metadata.gz: cc485503e335871d3b00217711da9dccd9c81f27982ef5ce199cf86b8fe0c8f9830ed7f108d653212e2c39ede6a6bd9feea25e2bf5980d4ad051d6f1e0690f76
7
+ data.tar.gz: 422d53bc55595de224a89ace1191e8758158e81f8aed1c18e7957f4df5b5dc4e40769ad1192d614f2f11c6e0ea6246b652e21d0fa9974779c5a7eaeb51f8f6ae
@@ -8,7 +8,8 @@ services:
8
8
  environment:
9
9
  - RAILS_ENV=development
10
10
  depends_on:
11
- - db
11
+ "db":
12
+ condition: service_healthy
12
13
  volumes:
13
14
  - ../:/usr/src/app
14
15
  - ../config/<%=@db_config_file%>.docker.yml:/usr/src/app/config/<%=@db_config_file%>.yml
@@ -10,7 +10,8 @@ services:
10
10
  - RAILS_SERVE_STATIC_FILES=true
11
11
  - SECRET_KEY_BASE=<%= @secret %>
12
12
  depends_on:
13
- - db
13
+ "db":
14
+ condition: service_healthy
14
15
  ports:
15
16
  - 3000:3000/tcp
16
17
  <%=@db%>
@@ -1,5 +1,10 @@
1
1
  db:
2
2
  image: mongo
3
+ healthcheck:
4
+ test: ["CMD", "echo 'db.stats().ok' | mongo localhost/test --quiet"]
5
+ interval: 30s
6
+ timeout: 10s
7
+ retries: 5
3
8
  volumes:
4
9
  - db-volume:/data/db
5
10
  ports:
@@ -2,6 +2,11 @@
2
2
  image: mysql:latest
3
3
  environment:
4
4
  MYSQL_ALLOW_EMPTY_PASSWORD: "true"
5
+ healthcheck:
6
+ test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
7
+ interval: 30s
8
+ timeout: 10s
9
+ retries: 5
5
10
  volumes:
6
11
  - db-volume:/var/lib/mysql
7
12
  ports:
@@ -1,5 +1,11 @@
1
1
  db:
2
2
  image: postgres
3
+ healthcheck:
4
+ test: ["CMD-SHELL", "pg_isready"]
5
+ interval: 30s
6
+ timeout: 10s
7
+ retries: 5
8
+
3
9
  volumes:
4
10
  - db-volume:/var/lib/postgresql/data
5
11
  ports:
@@ -1,3 +1,3 @@
1
1
  module GeneratorsRails
2
- VERSION = '0.0.9'.freeze
2
+ VERSION = '0.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generators_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - shaoyang