Skip to content

Commit

Permalink
dockered test setup and dependency bump
Browse files Browse the repository at this point in the history
  • Loading branch information
simonneutert committed Oct 6, 2024
1 parent c4ef2ef commit c0fe0f2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ EXPOSE 9292
COPY --from=gembuilder /usr/local/bundle/ /usr/local/bundle/
COPY --chown=${USERNAME} . ${WORKDIR}

CMD ["bundle", "exec rake"]
CMD ["bundle", "exec", "rake"]
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

source 'https://rubygems.org'

gem 'fiddle', '~> 1.1'
gem 'logger', '~> 1.6'
gem 'minitar-cli', '~> 0.12'
gem 'ostruct', '~> 0.6.0'
gem 'puma', '~> 6.4'
gem 'rack-unreloader', '~> 2.1'
gem 'rackup', '~> 2.1.0'
gem 'rake', '~> 13.1'
gem 'redcarpet', '~> 3.6'
gem 'reline', '~> 0.5.10'
gem 'rexml', '~> 3.3'
gem 'roda', '~> 3.84'
gem 'tantiny', '0.3.3'
Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.3.4)
diff-lcs (1.5.1)
fiddle (1.1.2)
hashie (5.0.0)
htmlbeautifier (1.4.3)
io-console (0.7.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
logger (1.6.1)
method_source (1.1.0)
minitar (0.12.1)
minitar-cli (0.12)
minitar (~> 0.12.0)
powerbar (~> 1.0)
minitest (5.25.1)
nio4r (2.7.3)
ostruct (0.6.0)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1)
Expand All @@ -39,6 +43,8 @@ GEM
rake (13.2.1)
redcarpet (3.6.0)
regexp_parser (2.9.2)
reline (0.5.10)
io-console (~> 0.5)
rexml (3.3.8)
roda (3.84.0)
rack
Expand Down Expand Up @@ -96,16 +102,20 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
fiddle (~> 1.1)
htmlbeautifier
logger (~> 1.6)
minitar-cli (~> 0.12)
minitest (~> 5.21)
ostruct (~> 0.6.0)
pry
puma (~> 6.4)
rack-test
rack-unreloader (~> 2.1)
rackup (~> 2.1.0)
rake (~> 13.1)
redcarpet (~> 3.6)
reline (~> 0.5.10)
rexml (~> 3.3)
roda (~> 3.84)
rubocop (~> 1.66)
Expand Down
3 changes: 2 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dev = ENV['RACK_ENV'] == 'development'
prod = ENV['RACK_ENV'] == 'production'
require 'pry' unless prod

require 'logger'
require 'yaml'
require 'tantiny'
require 'redcarpet'
Expand All @@ -12,7 +13,7 @@ require 'roda'
require 'fileutils'
require 'digest'
require 'rack/deflater'

require 'fiddle'
require 'ostruct'
require 'rack/unreloader'

Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ reset_default_memos:
@bundle exec rake reset_default_memos

test:
@docker buildx build -f Dockerfile.test . -t labra-test && docker run --rm -it --name labra-test labra-test
@docker build -f Dockerfile.test . -t labra-test && docker run --rm -it labra-test

pretty_js:
@npx prettier --write assets/js/**/*.js

0 comments on commit c0fe0f2

Please sign in to comment.