Skip to content

Commit

Permalink
[WOR-4059] - Upgrade to ruby 3.2.3
Browse files Browse the repository at this point in the history
- Upgrade rspec gem and fix specs
- Dockerfile and docker compose
  • Loading branch information
Weslley Almeida committed Feb 14, 2024
1 parent caf9e81 commit f60a51e
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 73 deletions.
2 changes: 2 additions & 0 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_BUILD__EVENTMACHINE: "--with-openssl-dir=/opt/homebrew/opt/openssl@3"
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM public.ecr.aws/docker/library/ruby:3.2.3-alpine3.19

RUN apk add --no-cache --update git build-base bash


RUN echo "#!/bin/sh" >> /entrypoint.sh && \
echo 'exec "$@"' >>/entrypoint.sh && \
chmod +x /entrypoint.sh
COPY signature.gemspec Gemfile Gemfile.lock /app/
COPY lib/signature/version.rb /app/lib/signature/

WORKDIR /app

RUN gem update --system 3.3.26
RUN gem install bundler:2.4.22

RUN bundle install

COPY . /app/

ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
30 changes: 19 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
PATH
remote: .
specs:
signature (0.1.8)
signature (0.1.9)

GEM
remote: https://rubygems.org/
specs:
bacon (1.2.0)
diff-lcs (1.2.4)
diff-lcs (1.5.1)
em-spec (0.2.6)
bacon
eventmachine
rspec (> 2.6.0)
test-unit
eventmachine (1.0.7)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.0)
test-unit (2.5.4)

PLATFORMS
ruby

DEPENDENCIES
em-spec
rspec
rspec (~> 3.13.0)
signature!

BUNDLED WITH
2.4.22
16 changes: 16 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.5'

services:
signature:
stdin_open: true
build:
dockerfile: Dockerfile
context: .
volumes:
- .:/app
command: "bash -c 'while true; do sleep 2; done'"
logging: &default-logging-options
driver: json-file
options:
max-size: "20m"
max-file: "5"
2 changes: 1 addition & 1 deletion signature.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

s.add_dependency "jruby-openssl" if defined?(JRUBY_VERSION)
s.add_development_dependency "rspec"
s.add_development_dependency "rspec", "~> 3.13.0"
s.add_development_dependency "em-spec"
end
Loading

0 comments on commit f60a51e

Please sign in to comment.