Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Docker secrets in tests and the gingr command #9

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source 'https://rubygems.org'

ruby File.read('.ruby-version')

gem "berkeley_library-docker", "~> 0.2.0"
gem 'berkeley_library-logging', '~> 0.2'
gem 'faraday-net_http_persistent', '~> 2.0'
gem 'geo_combine'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ GEM
public_suffix (>= 2.0.2, < 6.0)
amazing_print (1.5.0)
base64 (0.1.1)
berkeley_library-docker (0.2.0)
berkeley_library-logging (0.2.7)
activesupport (>= 6)
amazing_print (~> 1.1)
Expand Down Expand Up @@ -174,6 +175,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
berkeley_library-docker (~> 0.2.0)
berkeley_library-logging (~> 0.2)
faraday-net_http_persistent (~> 2.0)
geo_combine
Expand Down
4 changes: 3 additions & 1 deletion bin/gingr
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
require_relative '../lib/gingr'
require 'berkeley_library/docker'
BerkeleyLibrary::Docker::Secret.load_secrets!

require_relative '../lib/gingr'
Gingr::Cli.start(ARGV)
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# frozen_string_literal: true
require 'berkeley_library/docker'
BerkeleyLibrary::Docker::Secret.load_secrets!

$LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))
require 'gingr'

Expand Down