mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
This commit adds a new configuration parameter to allow setting whether to create linked clones on a global, or per pool basis. Without this change vmpooler would always attempt to create linked clones. The default behavior of creating linked clones is preserved.
21 lines
620 B
Text
21 lines
620 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 && bundle install && gem build vmpooler.gemspec && gem install vmpooler*.gem && \
|
|
chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|