Added docker support for development environment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
175ce24b27
commit
8dee8b1f40
15
Dockerfile.dev
Normal file
15
Dockerfile.dev
Normal 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"]
|
2
Gemfile
2
Gemfile
@ -5,7 +5,7 @@ gem 'sinatra-contrib', '~> 3.0'
|
|||||||
gem 'puma', '~> 6.3'
|
gem 'puma', '~> 6.3'
|
||||||
|
|
||||||
gem 'sequel', '~> 5.70'
|
gem 'sequel', '~> 5.70'
|
||||||
gem 'sqlite3', '~> 1.6'
|
gem 'sqlite3', '~> 1.7'
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'rerun'
|
gem 'rerun'
|
||||||
|
@ -59,7 +59,7 @@ GEM
|
|||||||
rack-protection (= 3.0.6)
|
rack-protection (= 3.0.6)
|
||||||
sinatra (= 3.0.6)
|
sinatra (= 3.0.6)
|
||||||
tilt (~> 2.0)
|
tilt (~> 2.0)
|
||||||
sqlite3 (1.6.3-x86_64-linux)
|
sqlite3 (1.7.2-x86_64-linux)
|
||||||
tilt (2.2.0)
|
tilt (2.2.0)
|
||||||
unicode-display_width (2.5.0)
|
unicode-display_width (2.5.0)
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ DEPENDENCIES
|
|||||||
sequel (~> 5.70)
|
sequel (~> 5.70)
|
||||||
sinatra (~> 3.0)
|
sinatra (~> 3.0)
|
||||||
sinatra-contrib (~> 3.0)
|
sinatra-contrib (~> 3.0)
|
||||||
sqlite3 (~> 1.6)
|
sqlite3 (~> 1.7)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.3.5
|
2.5.3
|
||||||
|
1
bin/docker-build.bat
Normal file
1
bin/docker-build.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
docker build -t game-data -f Dockerfile.dev .
|
1
bin/docker-rake.bat
Normal file
1
bin/docker-rake.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
docker exec game-data rake %*
|
1
bin/docker-run.bat
Normal file
1
bin/docker-run.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
docker run --rm -d -v "%cd%:/src" -p 9292:9292 --name game-data game-data
|
Loading…
Reference in New Issue
Block a user