Sha256: 272a5c361d617c74a5b370aef9dbac761f7e8b756631d58d83d509726ab0d767

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

# Install gems
FROM puppet/puppet-agent-alpine:6.4.2 as build

RUN \
apk --no-cache add build-base ruby-dev ruby-bundler ruby-json ruby-bigdecimal git openssl-dev linux-headers && \
echo 'gem: --no-document' > /etc/gemrc && \
bundle config --global silence_root_warning 1

RUN mkdir /ace
# Gemfile requires gemspec which requires ace/version which requires ace
ADD . /ace
WORKDIR /ace
RUN rm -f Gemfile.lock
RUN bundle install --no-cache --path vendor/bundle

# Final image
FROM build
ARG ace_version=no-version
LABEL org.label-schema.maintainer="Network Automation Team <team-network-automation@puppet.com>" \
      org.label-schema.vendor="Puppet" \
      org.label-schema.url="https://github.com/puppetlabs/ace" \
      org.label-schema.name="Agentless Catalog Executor" \
      org.label-schema.license="Apache-2.0" \
      org.label-schema.version=${ace_version} \
      org.label-schema.vcs-url="https://github.com/puppetlabs/ace" \
      org.label-schema.dockerfile="/Dockerfile"

RUN \
apk --no-cache add ruby openssl ruby-bundler ruby-json ruby-bigdecimal git

COPY --from=build /ace /ace
WORKDIR /ace

EXPOSE 44633
ENV ACE_CONF /ace/config/docker.conf

ENTRYPOINT bundle exec puma -C config/transport_tasks_config.rb

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
agentless-catalog-executor-1.1.0 Dockerfile
agentless-catalog-executor-1.0.0 Dockerfile