prometheus-splash 0.8.5 → 0.8.6

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: d55ef029657bc02603c1c3723df64d3a296bf3956d55ba4a9309402ce468aedc
4
- data.tar.gz: ba6cb4911ea6b5c4f6f2d8d5f4cb083f37111a768ce2978cadb5b701fdb4e186
3
+ metadata.gz: 8a4460d32852ffefae8779559dda23549d1897b4a9426ad5d79d5f7d5fa439f9
4
+ data.tar.gz: b5feaa825627a05bfce7809730e5ebd728d0555320e7a8aeebce7dc24ad1df62
5
5
  SHA512:
6
- metadata.gz: f85b863c72f11a4fe2716258c647ce28e2691462a1bf74bb84c8c5fa1cd17e8ec0edd0ac4cd0e816b61fc2d4f9ef536b492aaac6658c8e1567e4f6409d959df3
7
- data.tar.gz: 45b4f6c99ae525033585a059d34e6c1f363f2f2ffdf4637b41aa2ec19ca5f042c436ee9c439fecc99ad937e73e32c7a430f4a74d2340e6486d9e46861f5af67e
6
+ metadata.gz: da96fbe45265e982b74e741b4472bd3a61064c09f05b600cce13acf3340cb76bcf8b49843b169be6097b5e9422e32a5d942581e20cc3c03a5a413ccdffd93948
7
+ data.tar.gz: f86edff60f5ab1851fd25255055e16ee6244006a2e010f431a2107f35e50eb81ed6e13e3aa4695e9f9cedf309414977022d4d708ff0ab3e54f39b942a2bf3485
@@ -35,9 +35,10 @@ module CLISplash
35
35
  long_desc <<-LONGDESC
36
36
  Starting Splash Daemon\n
37
37
  LONGDESC
38
+ option :foreground, :type => :boolean, :aliases => "-F"
38
39
  desc "start", "Splash WebAdmin Daemon status"
39
40
  def start
40
- acase = run_as_root :startweb
41
+ acase = run_as_root :startweb, options
41
42
  splash_exit acase
42
43
  end
43
44
 
@@ -7,7 +7,7 @@ module Splash
7
7
  module Constants
8
8
 
9
9
  # Current splash version
10
- VERSION = "0.8.5"
10
+ VERSION = "0.8.6"
11
11
  # the path to th config file, not overridable by config
12
12
  CONFIG_FILE = "/etc/splash.yml"
13
13
  # the default execution trace_path if backend file
@@ -20,6 +20,7 @@ module Splash
20
20
  # Start the Splash Daemon
21
21
  # @param [Hash] options
22
22
  # @option options [Symbol] :quiet activate quiet mode for log (limit to :fatal)
23
+ # @option options [Symbol] :foreground run webadmin in foreground
23
24
  # @return [Hash] Exiter Case (:quiet_exit, :already_exist, :unknown_error or other)
24
25
  def startweb(options = {})
25
26
  require 'splash/webadmin/main'
@@ -37,7 +38,8 @@ module Splash
37
38
  daemon_config = {:description => config.webadmin_process_name,
38
39
  :pid_file => config.webadmin_full_pid_path,
39
40
  :stdout_trace => config.webadmin_full_stdout_trace_path,
40
- :stderr_trace => config.webadmin_full_stderr_trace_path
41
+ :stderr_trace => config.webadmin_full_stderr_trace_path,
42
+ :foreground => options[:foreground]
41
43
  }
42
44
 
43
45
  ["int","term","hup"].each do |type| daemon_config["sig#{type}_handler".to_sym] = Proc::new { WebAdminApp.quit! } end
data/templates/.env ADDED
File without changes
@@ -0,0 +1,5 @@
1
+ FROM ruby:latest
2
+ RUN gem install prometheus-splash
3
+ RUN splash conf set
4
+ EXPOSE 9234
5
+ CMD ["splash","web", "start" ,"-F"]
@@ -0,0 +1,14 @@
1
+ version: "3"
2
+
3
+ services:
4
+ redis:
5
+ image: redis:latest
6
+
7
+ splash:
8
+ build: .
9
+ env_file: .env
10
+ ports:
11
+ - 9234:9234
12
+ depends_on:
13
+ - redis
14
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-splash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain GEORGES
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-06 00:00:00.000000000 Z
11
+ date: 2022-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -486,6 +486,8 @@ files:
486
486
  - prometheus-splash.gemspec
487
487
  - spec/helpers_spec.rb
488
488
  - spec/templates_spec.rb
489
+ - templates/.env
490
+ - templates/Dockerfile
489
491
  - templates/ansible-splash/Vagrantfile
490
492
  - templates/ansible-splash/deploy.yml
491
493
  - templates/ansible-splash/group_vars/DEV.yml
@@ -508,6 +510,7 @@ files:
508
510
  - templates/ansible-splash/roles/supervision_master/tasks/main.yml
509
511
  - templates/ansible-splash/roles/supervision_master/templates/alertmanager.yml.j2
510
512
  - templates/ansible-splash/roles/supervision_master/templates/prometheus.yml.j2
513
+ - templates/docker-compose.yml
511
514
  - templates/report.txt
512
515
  - templates/splashd.service
513
516
  - test.sh
@@ -531,7 +534,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
531
534
  - !ruby/object:Gem::Version
532
535
  version: '0'
533
536
  requirements: []
534
- rubygems_version: 3.1.2
537
+ rubygems_version: 3.2.3
535
538
  signing_key:
536
539
  specification_version: 4
537
540
  summary: Supervision with Prometheus of Logs and Asynchronous tasks orchestration