smart_proxy_container_gateway 1.0.8 → 1.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d52f9d8f94dbb3b6023873a2a1b60d1111d976becb39a571da2ed5a611591ab
|
4
|
+
data.tar.gz: a1682bbd3d662e3f908a6de9b4608eff35f7d729179abbef816e276c53b55565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 316bdf2ba69af1c58c5f035fda37f1213c19f0a370574888bc43821dc8426dbbcffadc02a665b43b1af485c4b4737db0410e07eedffaa15ea80a0ed1643ddaa3
|
7
|
+
data.tar.gz: e2b1a51b8776709a6b60b6218c77bc2a609b8415737079c01620bc94580e0a252106dea3ea585b8f70248f669bb7ff45ffb848697243843caa947994034178bd
|
@@ -7,7 +7,8 @@ module Proxy
|
|
7
7
|
|
8
8
|
default_settings :pulp_endpoint => "https://#{`hostname`.strip}",
|
9
9
|
:katello_registry_path => '/v2/',
|
10
|
-
:sqlite_db_path => '/var/lib/foreman-proxy/smart_proxy_container_gateway.db'
|
10
|
+
:sqlite_db_path => '/var/lib/foreman-proxy/smart_proxy_container_gateway.db',
|
11
|
+
:sqlite_timeout => 30_000
|
11
12
|
|
12
13
|
# Load defaults that copy values from SETTINGS. This is done as
|
13
14
|
# programmable settings since SETTINGS isn't initialized during plugin
|
@@ -174,7 +174,8 @@ module Proxy
|
|
174
174
|
|
175
175
|
def initialize_db
|
176
176
|
file_path = Proxy::ContainerGateway::Plugin.settings.sqlite_db_path
|
177
|
-
|
177
|
+
sqlite_timeout = Proxy::ContainerGateway::Plugin.settings.sqlite_timeout
|
178
|
+
conn = Sequel.connect("sqlite://#{file_path}", timeout: sqlite_timeout)
|
178
179
|
container_gateway_path = $LOAD_PATH.detect { |path| path.include? 'smart_proxy_container_gateway' }
|
179
180
|
begin
|
180
181
|
Sequel::Migrator.check_current(conn, "#{container_gateway_path}/smart_proxy_container_gateway/sequel_migrations")
|
@@ -6,3 +6,5 @@
|
|
6
6
|
:pulp_client_ssl_key: 'RSA private key for the Pulp certificate'
|
7
7
|
:katello_registry_path: 'Katello container registry suffix, e.g., /v2/'
|
8
8
|
:sqlite_db_path: '/var/lib/foreman-proxy/smart_proxy_container_gateway.db'
|
9
|
+
# Database busy timeout in milliseconds
|
10
|
+
:sqlite_timeout: 30000
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_container_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ballou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|