souls 3.0.5 → 3.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14f93bcf9a99d88be8a592e39e8ba30cf1b7897e3431d95a6ffc48fee0377bc6
4
- data.tar.gz: 72011096e8c3593d4ce196ff9ebde3e6ce571e9951f1810309ce708f96d738cc
3
+ metadata.gz: 8a8b84646e09108a623ef8af9e847d0b265199214efb36835682862e4c6c1da1
4
+ data.tar.gz: 6ffb000ccc19a5d45abcc129b070efb7604f6a9d38d7baa40882c5bdc41b0509
5
5
  SHA512:
6
- metadata.gz: 629b55d0c35a1ecd097367b2424f91a11b013f66f16e065bd9c5e4c7bceba2fdbde2a7c746b99a0009465fa45b1c9012f8a4a96b481fc3cd6b2fe9ddac593e3d
7
- data.tar.gz: 4bda382f9edab94ea8cdb7e46b39a21e6f174ac14a4c8a53cb0bc612a71a8f23e08b7acd203de5aa66e953203aba5e0d50efaac5dc2dc19b013ceb0b7472c658
6
+ metadata.gz: 5d1aea6963e33b11a1473ceab5864b6b80a5a4a3bf2e39b006154eaa1a4830cd9c967c22c531178981c3b855c1bb007cbfb0ce36d96851dd4e423101657f806d
7
+ data.tar.gz: d93b11bc98946d5b2e3acb61d5658974acb0967c1b6bcddb96df2a0bf15bfcbc74e6dec988799c112d4159645ecfa555d1c520d528b0cd4b3ade73d51e84d01f
@@ -1,16 +1,9 @@
1
1
  module SOULs
2
2
  class Docker < Thor
3
- desc "psql", "Run PostgreSQL13 Docker Container"
3
+ desc "psql", "Run PostgreSQL14 Docker Container"
4
4
  def psql
5
5
  system(
6
- "docker run --rm -d \
7
- --name souls-psql \
8
- -p 5433:5432 \
9
- -v postgres-tmp:/var/lib/postgresql/data \
10
- -e POSTGRES_USER=postgres \
11
- -e POSTGRES_PASSWORD=postgres \
12
- -e POSTGRES_DB=souls_test \
13
- postgres:13-alpine"
6
+ "docker run --restart always -d --name souls-psql -p 5433:5432 -v postres-tmp:/var/lib/postgresql/data -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=souls_test postgres:14-alpine"
14
7
  )
15
8
  system("docker ps")
16
9
  end
@@ -18,7 +11,7 @@ module SOULs
18
11
  desc "mysql", "Run MySQL Docker Container"
19
12
  def mysql
20
13
  system(
21
- "docker run --rm -d \
14
+ "docker run --restart always -d \
22
15
  --name souls-mysql \
23
16
  -p 3306:3306 \
24
17
  -v mysql-tmp:/var/lib/mysql \
data/lib/souls/cli.rb CHANGED
@@ -55,6 +55,32 @@ module SOULs
55
55
  system("bundle exec rspec")
56
56
  end
57
57
 
58
+ desc "build", "Run Docker Build"
59
+ def build
60
+ app = SOULs.configuration.app
61
+ system("docker build . -t #{app}")
62
+ end
63
+
64
+ desc "tag", "Run Docker Tag"
65
+ def tag
66
+ souls_config = SOULs.configuration
67
+ app = souls_config.app
68
+ region = souls_config.region
69
+ gcr = region_to_container_url(region:)
70
+ project_id = souls_config.project_id
71
+ system("docker tag #{app}:latest #{gcr}/#{project_id}/#{app}:latest")
72
+ end
73
+
74
+ desc "push", "Run Docker Push"
75
+ def push
76
+ souls_config = SOULs.configuration
77
+ app = souls_config.app
78
+ region = souls_config.region
79
+ gcr = region_to_container_url(region:)
80
+ project_id = souls_config.project_id
81
+ system("docker push #{gcr}/#{project_id}/#{app}:latest")
82
+ end
83
+
58
84
  def self.exit_on_failure?
59
85
  false
60
86
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "3.0.5".freeze
2
+ VERSION = "3.0.8".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 3.0.5
1
+ 3.0.8
@@ -1 +1 @@
1
- 3.0.5
1
+ 3.0.8
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-08-31 00:00:00.000000000 Z
13
+ date: 2022-09-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport