mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(POOLER-114) Refactor check_pool in pool_manager
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.
This commit is contained in:
parent
c053554ca8
commit
3aac95d5b9
7 changed files with 916 additions and 671 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
FROM jruby:9.1-jdk
|
||||
|
||||
COPY ./docker/docker-entrypoint.sh /usr/local/bin/
|
||||
COPY docker/docker-entrypoint.sh /usr/local/bin/
|
||||
|
||||
ENV LOGFILE=/dev/stdout \
|
||||
RACK_ENV=production
|
||||
|
|
@ -19,5 +19,3 @@ RUN gem install vmpooler && \
|
|||
chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
CMD ["vmpooler"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue