Added docker support for development environment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2024-02-09 07:17:14 -05:00
parent 175ce24b27
commit 8dee8b1f40
6 changed files with 22 additions and 4 deletions

15
Dockerfile.dev Normal file
View File

@ -0,0 +1,15 @@
FROM ruby:3.3
RUN gem install bundler -v 2.5
WORKDIR /src
COPY Gemfile Gemfile.lock ./
RUN bundle check || bundle install
RUN gem install rake
COPY . ./
ENTRYPOINT ["rake", "server:dev"]

View File

@ -5,7 +5,7 @@ gem 'sinatra-contrib', '~> 3.0'
gem 'puma', '~> 6.3'
gem 'sequel', '~> 5.70'
gem 'sqlite3', '~> 1.6'
gem 'sqlite3', '~> 1.7'
group :development, :test do
gem 'rerun'

View File

@ -59,7 +59,7 @@ GEM
rack-protection (= 3.0.6)
sinatra (= 3.0.6)
tilt (~> 2.0)
sqlite3 (1.6.3-x86_64-linux)
sqlite3 (1.7.2-x86_64-linux)
tilt (2.2.0)
unicode-display_width (2.5.0)
@ -74,7 +74,7 @@ DEPENDENCIES
sequel (~> 5.70)
sinatra (~> 3.0)
sinatra-contrib (~> 3.0)
sqlite3 (~> 1.6)
sqlite3 (~> 1.7)
BUNDLED WITH
2.3.5
2.5.3

1
bin/docker-build.bat Normal file
View File

@ -0,0 +1 @@
docker build -t game-data -f Dockerfile.dev .

1
bin/docker-rake.bat Normal file
View File

@ -0,0 +1 @@
docker exec game-data rake %*

1
bin/docker-run.bat Normal file
View File

@ -0,0 +1 @@
docker run --rm -d -v "%cd%:/src" -p 9292:9292 --name game-data game-data