Add docker-compose and dockerfile to support it

This commit adds a docker-compose file and a dockerfile to build vmpooler and install it from source.
This commit is contained in:
kirby@puppetlabs.com 2018-09-21 13:39:04 -07:00
parent 5e39bc2755
commit 8bddb4f854
2 changed files with 52 additions and 0 deletions

21
docker/Dockerfile_local Normal file
View file

@ -0,0 +1,21 @@
# Run vmpooler in a Docker container! Configuration can either be embedded
# and built within the current working directory, or stored in a
# VMPOOLER_CONFIG environment value and passed to the Docker daemon.
#
# BUILD:
# docker build -t vmpooler .
#
# RUN:
# docker run -e VMPOOLER_CONFIG -p 80:4567 -it vmpooler
FROM jruby:9.1-jdk
COPY docker/docker-entrypoint.sh /usr/local/bin/
COPY ./ ./
ENV RACK_ENV=production
RUN bundle && gem build vmpooler.gemspec && gem install vmpooler*.gem && \
chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]