Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request dbresson#1 from compellon/add-docker
Browse files Browse the repository at this point in the history
add a Dockerfile
  • Loading branch information
dbresson authored Feb 3, 2017
2 parents 57baa20 + c9d7d08 commit e137dcc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bedouin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/compellon/bedouin"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|docker)/}) }
spec.bindir = "bin"
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down
10 changes: 10 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM alpine
ARG NOMAD_VERSION=0.5.2
RUN apk add --no-cache wget ca-certificates unzip ruby &&\
wget -q https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip &&\
unzip -d /usr/local/bin nomad_${NOMAD_VERSION}_linux_amd64.zip &&\
rm nomad_${NOMAD_VERSION}_linux_amd64.zip &&\
chmod +x /usr/local/bin/nomad &&\
gem install --no-document bedouin
USER nobody
ENTRYPOINT ["bedouin"]

0 comments on commit e137dcc

Please sign in to comment.