Skip to content

Commit 7abc5ec

Browse files
author
Gerard Hickey
committed
Updated Dockerfile to install facter modules
1 parent 4fa1e66 commit 7abc5ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ RUN apk update && \
99
echo "install: --no-rdoc --no-ri" > /etc/gemrc && \
1010
gem install json_pure daemons && \
1111
gem install facter -v ${FACTER_VERSION} && \
12+
mkdir -p /etc/facter/facts.d && \
1213
find /usr/lib/ruby/gems/2.2.0/gems/facter-${FACTER_VERSION} -type f -exec sed -i 's:/proc/:/host-proc/:g' {} + && \
1314
find /usr/lib/ruby/gems/2.2.0/gems/facter-${FACTER_VERSION} -type f -exec sed -i 's:/dev/:/host-dev/:g' {} + && \
1415
find /usr/lib/ruby/gems/2.2.0/gems/facter-${FACTER_VERSION} -type f -exec sed -i 's:/host-dev/null:/dev/null:g' {} + && \
1516
find /usr/lib/ruby/gems/2.2.0/gems/facter-${FACTER_VERSION} -type f -exec sed -i 's:/sys/:/host-sys/:g' {} +
1617
ADD hnl_mk*.rb /usr/local/bin/
1718
ADD hanlon_microkernel/*.rb /usr/local/lib/ruby/hanlon_microkernel/
19+
ADD hanlon_microkernel/facter/*.rb /usr/local/lib/site_ruby/facter/
20+

0 commit comments

Comments
 (0)