mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
This commit duplicates the vm_ready? check to the API layer to allow for API to validate that a VM is alive at checkout. Without this change API relies upon the checks in pool_manager validating pools. This change should allow for additional insight into whether a machine is in a ready state and resopnding at checkout time.
21 lines
631 B
Text
21 lines
631 B
Text
# 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.2-jdk
|
|
|
|
COPY docker/docker-entrypoint.sh /usr/local/bin/
|
|
COPY ./ ./
|
|
|
|
ENV RACK_ENV=production
|
|
|
|
RUN gem install bundler -v '2.0.1' && bundle install && gem build vmpooler.gemspec && gem install vmpooler*.gem && \
|
|
chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|