ood_core 0.24.2 → 0.25.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
  SHA256:
3
- metadata.gz: '08f64f135dbbf6ea8058870d4339c1669586deed5be368d54dd0ff3ae476d8b0'
4
- data.tar.gz: 3f04d4f98590cbaa3ce502fca901e23e67638442b2daa6621bc5fb5c640a91ae
3
+ metadata.gz: ad05a0d8cf307f0237329f0e33e8a66f809781e5b164ddf20b9f03d65078451d
4
+ data.tar.gz: 396dde55b4b5aaa321ccaf6fbc3cb049d01239335533c35c39ee9a11a1aa5d9b
5
5
  SHA512:
6
- metadata.gz: 0ca0bdf738b58a61f45c030cc202b3a035d0f33782d7a125d5367fcd63e3fe5f83b70c60a61b772fd3ec5872742632af571c7d9be154845b4836e1fe8659d96c
7
- data.tar.gz: 2e7c8f01385fb2553e0ac5774442e3d4b1fca9cee72b1c8fd80b9a4436bcbf297ebce7a0a3e802a7e40fffab1a611c8d02ff74cf19d2c4a627ee5e755ed63581
6
+ metadata.gz: 4a1d7cb53117266c577eaa7792d867508f3e94ef78f2f9af7817882ad1f6165d5d43e8179e17163a83dd438627215700501ea75281204ee6b7d900649c77de9f
7
+ data.tar.gz: 4aaf01f40d43e7b496a053e2ef85548769beb169c78e954cd055659ecc08f2e8ef7221561f94a184eb986b9f13d52c2efda30ffdd07faeb697fab4d9d4411ce7
data/CHANGELOG.md CHANGED
@@ -7,10 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ # [0.25.0] - 03-27-2024
11
+
12
+ - [828](https://github.com/OSC/ood_core/pull/828) and [826](https://github.com/OSC/ood_core/pull/826)
13
+ add configurable heartbeats to noVNC connections.
14
+
10
15
  # [0.24.2] - 01-24-2024
11
16
 
12
17
  - [823](https://github.com/OSC/ood_core/pull/823) Corrected a mistake in converting duration to seconds.
13
- * [821](https://github.com/OSC/ood_core/pull/821) add container_start_args to pass options to the start command.
18
+ - [821](https://github.com/OSC/ood_core/pull/821) add container_start_args to pass options to the start command.
14
19
 
15
20
  ## [0.24.1] - 11-29-2023
16
21
 
@@ -24,6 +24,9 @@ module OodCore
24
24
  # @option context [#to_s] :websockify_cmd
25
25
  # ("${WEBSOCKIFY_CMD:-/opt/websockify/run}") the path to the
26
26
  # websockify script (assumes you don't modify `:after_script`)
27
+ # @option context [#to_s] :websockify_heartbeat_seconds
28
+ # ("${WEBSOCKIFY_HEARTBEAT_SECONDS:-30}") the websockify heartbeat
29
+ # duration in seconds. (assumes you don't modify `:after_script`)
27
30
  # @option context [#to_s] :vnc_log ("vnc.log") path to vnc server log
28
31
  # file (assumes you don't modify `:before_script` or `:after_script`)
29
32
  # @option context [#to_s] :vnc_passwd ("vnc.passwd") path to the file
@@ -130,7 +133,8 @@ module OodCore
130
133
  # successful connections so that the password can be reset
131
134
  def after_script
132
135
  websockify_cmd = context.fetch(:websockify_cmd, "${WEBSOCKIFY_CMD:-/opt/websockify/run}").to_s
133
-
136
+ websockify_hb = context.fetch(:websockify_heartbeat_seconds, "${WEBSOCKIFY_HEARTBEAT_SECONDS:-30}").to_s
137
+
134
138
  <<-EOT.gsub(/^ {14}/, "")
135
139
  #{super}
136
140
 
@@ -139,7 +143,7 @@ module OodCore
139
143
  start_websockify() {
140
144
  local log_file="./websockify.log"
141
145
  # launch websockify in background and redirect all output to a file.
142
- #{websockify_cmd} $1 $2 &> $log_file &
146
+ #{websockify_cmd} $1 --heartbeat=#{websockify_hb} $2 &> $log_file &
143
147
  local ws_pid=$!
144
148
  local counter=0
145
149
 
@@ -1,4 +1,4 @@
1
1
  module OodCore
2
2
  # The current version of {OodCore}
3
- VERSION = "0.24.2"
3
+ VERSION = "0.25.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ood_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.2
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Franz
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-01-31 00:00:00.000000000 Z
13
+ date: 2024-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ood_support