forked from signalfx/signalfx-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (18 loc) · 817 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:18.04
ENV PATH=$PATH:/opt/puppetlabs/bin:/opt/puppetlabs/pdk/bin
WORKDIR /tmp
RUN apt update &&\
apt install -y make wget vim gcc ruby ruby-dev libxml2 libxml2-dev libxslt1-dev git apt-transport-https ca-certificates g++
RUN wget https://apt.puppetlabs.com/puppet5-release-bionic.deb &&\
dpkg -i puppet5-release-bionic.deb &&\
rm *.deb &&\
apt update &&\
apt install -y puppet-agent
RUN wget -O pdk.deb 'https://pm.puppetlabs.com/cgi-bin/pdk_download.cgi?dist=ubuntu&rel=18.04&arch=amd64&ver=latest' &&\
dpkg -i pdk.deb &&\
rm *.deb
WORKDIR /etc/puppetlabs/code/modules/signalfx_agent
COPY ./Rakefile ./Gemfile ./Gemfile.lock ./
RUN gem install bundler -v "$(grep -A1 'BUNDLED WITH' Gemfile.lock | tail -n1)" && bundle install
ENV PATH=/opt/puppetlabs/bin:$PATH
COPY ./ ./