Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a Dockerfile and updated README with instructions to run using docker #937

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:3.2.2-alpine

WORKDIR /var/cache/showoff

RUN apk add make gcc musl-dev g++ gcompat && gem install nokogiri showoff

ENTRYPOINT showoff serve
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ you'll need to install both Ruby and the Ruby DevKit for compiling native extens
gem install showoff


Alternatively, you can run Showoff using docker:

docker run --rm -it -p 9090:9090 -v $(pwd):/var/cache/showoff binford2k/showoff


Or build the image yourself:

docker build -t local/showoff .


And run using the locally built image:

docker run --rm -it -p 9090:9090 -v $(pwd):/var/cache/showoff local/showoff

## Documentation

Please see the user manual on the [Showoff homepage](http://puppetlabs.github.io/showoff)
Expand Down