mirror of
https://github.com/puppetlabs/vmpooler-deployment.git
synced 2026-01-26 03:28:41 -05:00
Improve development experience
This commit is contained in:
parent
3f34b85dcb
commit
45388de4e1
12 changed files with 119 additions and 99 deletions
38
docker/Dockerfile.dev
Normal file
38
docker/Dockerfile.dev
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# For local development of vmpooler core and provider gems instead of using a
|
||||
# git source ensure the following directory structure:
|
||||
# |-- vmpooler-projects
|
||||
# | |--vmpooler-deployment
|
||||
# | |--vmpooler-provider-ec2
|
||||
# | |--vmpooler-provider-gce
|
||||
# | |--vmpooler-provider-vsphere
|
||||
#
|
||||
# Then change directory into vmpooler-projects and build with:
|
||||
|
||||
|
||||
FROM jruby:9.4.3.0-jdk11
|
||||
|
||||
LABEL org.opencontainers.image.description "VMPooler plus all known providers"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV LOGFILE=/dev/stdout
|
||||
ENV RACK_ENV=production
|
||||
|
||||
RUN apt-get update -qq && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends make git netbase && \
|
||||
apt-get clean autoclean && \
|
||||
apt-get autoremove -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN gem install bundler
|
||||
|
||||
COPY docker-entrypoint.dev.sh /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
COPY Gemfile.dev ./Gemfile
|
||||
COPY .rerun ./.rerun
|
||||
|
||||
RUN bundle config set --local jobs 3
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue