Created
November 7, 2018 19:56
-
-
Save nicklewis/b3ff3bf96967f0a5fabdf6cafb2b1278 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
ARG vcs_ref | |
ARG build_date | |
ARG version="2019.0.1.8" | |
ENV PE_VERSION="2019.0" | |
ENV PEPER_VERSION="2019.0.2.1" | |
ENV JAVA_VERSION="2019.0.1.8.0.191" | |
ENV PUPPET_AGENT_VERSION="6.0.4" | |
ENV ORCHESTRATION_SERVICES_VERSION="$version" | |
ENV DUMB_INIT_VERSION="1.2.1" | |
ENV UBUNTU_CODENAME="xenial" | |
ENV ORCHESTRATION_SERVICES_JAVA_ARGS="-Xms256m -Xmx256m" | |
ENV PATH=/opt/puppetlabs/server/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:$PATH | |
ENV PUPPET_HEALTHCHECK_ENVIRONMENT="production" | |
LABEL org.label-schema.maintainer="Direct Change Team <team-direct-change@puppet.com>" \ | |
org.label-schema.vendor="Puppet" \ | |
org.label-schema.url="https://github.com/puppetlabs/pe-orchestration-services" \ | |
org.label-schema.name="pe-orchestration-services" \ | |
org.label-schema.license="Apache-2.0" \ | |
org.label-schema.version="$ORCHESTRATION_SERVICES_VERSION" \ | |
org.label-schema.vcs-url="https://github.com/puppetlabs/pe-orchestration-services" \ | |
org.label-schema.vcs-ref="$vcs_ref" \ | |
org.label-schema.build-date="$build_date" \ | |
org.label-schema.schema-version="1.0" \ | |
org.label-schema.dockerfile="/Dockerfile" | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends wget=1.17.1-1ubuntu1 ca-certificates net-tools && \ | |
wget --quiet https://enterprise.delivery.puppetlabs.net/${PE_VERSION?}/repos/ubuntu-16.04-amd64/pe-puppet-enterprise-release_${PEPER_VERSION}-1${UBUNTU_CODENAME?}_all.deb && \ | |
wget --quiet https://enterprise.delivery.puppetlabs.net/${PE_VERSION?}/repos/ubuntu-16.04-amd64/pe-java_${JAVA_VERSION?}-1${UBUNTU_CODENAME?}_amd64.deb && \ | |
wget --quiet https://enterprise.delivery.puppetlabs.net/${PE_VERSION?}/repos/ubuntu-16.04-amd64/pe-orchestration-services_${version?}-1${UBUNTU_CODENAME?}_all.deb && \ | |
wget --quiet https://enterprise.delivery.puppetlabs.net/${PE_VERSION?}/repos/ubuntu-16.04-amd64/puppet-agent_${PUPPET_AGENT_VERSION?}-1${UBUNTU_CODENAME?}_amd64.deb && \ | |
wget --quiet https://github.com/Yelp/dumb-init/releases/download/v"$DUMB_INIT_VERSION"/dumb-init_"$DUMB_INIT_VERSION"_amd64.deb && \ | |
dpkg -i puppet-agent*.deb && \ | |
rm puppet-agent*.deb && \ | |
dpkg -i dumb-init_"$DUMB_INIT_VERSION"_amd64.deb && \ | |
rm dumb-init_"$DUMB_INIT_VERSION"_amd64.deb && \ | |
dpkg -i pe-*.deb && \ | |
rm pe-*.deb && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
COPY Dockerfile / | |
COPY defaults /etc/default/pe-orchestration-services | |
COPY bootstrap.cfg /etc/puppetlabs/orchestration-services/ | |
COPY logback.xml /etc/puppetlabs/orchestration-services/ | |
COPY request-logging.xml /etc/puppetlabs/orchestration-services/ | |
COPY conf.d /etc/puppetlabs/orchestration-services/conf.d | |
EXPOSE 8140 | |
ENTRYPOINT ["dumb-init", "/opt/puppetlabs/server/apps/orchestration-services/bin/orchestration-services"] | |
CMD ["foreground"] | |
#COPY healthcheck.sh / | |
#RUN chmod +x /healthcheck.sh | |
#HEALTHCHECK --interval=10s --timeout=10s --retries=90 CMD ["/healthcheck.sh"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment