souls 3.0.7 → 3.0.8

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
  SHA256:
3
- metadata.gz: 5618d14bdcf55418ef9c3f0ecbefa097f6c2b8dee1b872cad6bfe10ea6021d38
4
- data.tar.gz: ca2e5663cdf94a8d2a18fafd59904a5f3a902352571edc5683ac98d19bd4b759
3
+ metadata.gz: 8a8b84646e09108a623ef8af9e847d0b265199214efb36835682862e4c6c1da1
4
+ data.tar.gz: 6ffb000ccc19a5d45abcc129b070efb7604f6a9d38d7baa40882c5bdc41b0509
5
5
  SHA512:
6
- metadata.gz: 96ebe355ba9d3c7ee49aa40d28a451872570d7028695e6715621c4d89123ba67a72816035658dfb8552e699cfb729ad923fcfb459601889e4fc782b2391d7fe7
7
- data.tar.gz: 9e7ca9398bc5d292c664a797184f18dcd191346db3c6cfcf2ae22b7e6b32ae8a9c1254b19ac10dd10707db9117ee59497c0830b050837ff6b900984d6939a6aa
6
+ metadata.gz: 5d1aea6963e33b11a1473ceab5864b6b80a5a4a3bf2e39b006154eaa1a4830cd9c967c22c531178981c3b855c1bb007cbfb0ce36d96851dd4e423101657f806d
7
+ data.tar.gz: d93b11bc98946d5b2e3acb61d5658974acb0967c1b6bcddb96df2a0bf15bfcbc74e6dec988799c112d4159645ecfa555d1c520d528b0cd4b3ade73d51e84d01f
@@ -3,14 +3,7 @@ module SOULs
3
3
  desc "psql", "Run PostgreSQL14 Docker Container"
4
4
  def psql
5
5
  system(
6
- "docker run --restart always -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:14-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.7".freeze
2
+ VERSION = "3.0.8".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 3.0.7
1
+ 3.0.8
@@ -1 +1 @@
1
- 3.0.7
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.7
4
+ version: 3.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI