souls 3.0.7 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls/cli/docker/index.rb +2 -9
- data/lib/souls/cli.rb +26 -0
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a8b84646e09108a623ef8af9e847d0b265199214efb36835682862e4c6c1da1
|
4
|
+
data.tar.gz: 6ffb000ccc19a5d45abcc129b070efb7604f6a9d38d7baa40882c5bdc41b0509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 --
|
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 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.8
|
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.8
|