mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
This commit refactorss the check_pool method in pool_manager. Specifically, each commented section describing a stage of check_pool is broken out into a separate method and check_pool is simplified by calling these methods. Without this change it is difficult to follow the intent for or make changes to check_pool. Additionally, a docker-compose file is added to make it simple to launch an all-in-one vmpooler instance along with a separate redis server with docker.
21 lines
561 B
Docker
21 lines
561 B
Docker
# 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/
|
|
|
|
ENV LOGFILE=/dev/stdout \
|
|
RACK_ENV=production
|
|
|
|
RUN gem install vmpooler && \
|
|
chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|