1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Example Dockerfile for issue reproduction

This commit is contained in:
Nate Berkopec 2019-09-19 13:43:29 +02:00
parent 8eac8d4a33
commit 58acb805f5
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6
2 changed files with 26 additions and 1 deletions

View file

@ -31,6 +31,15 @@ bundle exec puma -C <where_your_config_is> hello.ru
If you cannot reproduce with a hello world application or other simple application, we will have a lot more difficulty helping you fix your issue, because it may be application-specific and not a bug in Puma at all.
There is also a Dockerfile available for reproducing Linux-specific issues. To use:
```
$ docker build -f tools/docker/Dockerfile -t puma .
$ docker run -p 9292:9292 -it puma
```
This will help you to create a container that reproduces your issue.
**Expected behavior**
A clear and concise description of what you expected to happen.

16
tools/docker/Dockerfile Normal file
View file

@ -0,0 +1,16 @@
# Use this Dockerfile to create minimal reproductions of issues
FROM ruby:2.6
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
WORKDIR /usr/src/app
COPY . .
RUN gem install bundler
RUN bundle install
RUN bundle exec rake compile
EXPOSE 9292
CMD bundle exec bin/puma test/rackup/hello.ru