mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
29 lines
795 B
Docker
29 lines
795 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.2-jdk
|
|
|
|
ARG vmpooler_version=0.11.3
|
|
|
|
COPY docker/docker-entrypoint.sh /usr/local/bin/
|
|
|
|
ENV LOGFILE=/dev/stdout \
|
|
RACK_ENV=production
|
|
|
|
RUN apt-get update -qq && \
|
|
apt-get install -y --no-install-recommends make && \
|
|
apt-get clean autoclean && \
|
|
apt-get autoremove -y && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN gem install vmpooler -v ${vmpooler_version} && \
|
|
chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|