Skip to content

Commit fd5e7bc

Browse files
author
Daniel Schmidt
committed
Replace docker shim with BerkeleyLibrary::Docker
1 parent bf33609 commit fd5e7bc

6 files changed

Lines changed: 13 additions & 16 deletions

File tree

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.3

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ RUN gem install bundler --version 2.2.33
6969

7070
# Install gems. We don't enforce the validity of the Gemfile.lock until the
7171
# final (production) stage.
72-
COPY --chown=$APP_USER:$APP_USER Gemfile* ./
72+
COPY --chown=$APP_USER:$APP_USER Gemfile* .ruby-version ./
7373
RUN bundle install
7474

7575
# Copy the rest of the codebase. We do this after bundle-install so that

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
source 'https://rubygems.org'
22

3+
ruby File.read('.ruby-version').strip
4+
5+
gem 'berkeley_library-docker', '~> 0.1.1'
36
gem 'chronic', '~> 0.10.2'
47
gem 'net-sftp'
58
gem 'thor', '~> 1.1'

Gemfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GEM
44
addressable (2.8.0)
55
public_suffix (>= 2.0.2, < 5.0)
66
ast (2.4.2)
7+
berkeley_library-docker (0.1.1)
78
chronic (0.10.2)
89
colorize (0.8.1)
910
crack (0.4.5)
@@ -61,9 +62,11 @@ GEM
6162
hashdiff (>= 0.4.0, < 2.0.0)
6263

6364
PLATFORMS
65+
x86_64-darwin-19
6466
x86_64-linux
6567

6668
DEPENDENCIES
69+
berkeley_library-docker (~> 0.1.1)
6770
chronic (~> 0.10.2)
6871
colorize
6972
net-sftp
@@ -76,5 +79,8 @@ DEPENDENCIES
7679
timecop (~> 0.9.5)
7780
webmock
7881

82+
RUBY VERSION
83+
ruby 3.0.3p157
84+
7985
BUNDLED WITH
8086
2.2.32

bin/berkeley_library-sftp_handler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
55
end
66

7-
require 'docker'
8-
Docker::Secret.setup_environment!
7+
require 'berkeley_library/docker'
8+
BerkeleyLibrary::Docker::Secret.load_secrets!
99

1010
require 'berkeley_library/sftp_handler'
1111

lib/docker.rb

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)