File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ FROM gliderlabs/alpine
3
3
ENV FACTER_VERSION 2.4.6
4
4
5
5
# Install any dependencies needed
6
+ ADD ipmitool-*.apk /tmp
6
7
RUN apk update && \
7
8
apk add bash sed dmidecode ruby ruby-irb open-lldp util-linux open-vm-tools sudo && \
8
- apk add lshw ipmitool --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted && \
9
+ apk add lshw --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted && \
10
+ apk add --allow-untrusted /tmp/ipmitool-*.apk && \
9
11
echo "install: --no-rdoc --no-ri" > /etc/gemrc && \
12
+ curl -o $(dirname $(gem which rubygems))/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem https://curl.haxx.se/ca/cacert.pem && \
10
13
gem install json_pure daemons && \
11
14
gem install facter -v ${FACTER_VERSION} && \
12
15
find /usr/lib/ruby/gems/2.2.0/gems/facter-${FACTER_VERSION} -type f -exec sed -i 's:/proc/:/host-proc/:g' {} + && \
@@ -15,7 +18,8 @@ RUN apk update && \
15
18
find /usr/lib/ruby/gems/2.2.0/gems/facter-${FACTER_VERSION} -type f -exec sed -i 's:/sys/:/host-sys/:g' {} +
16
19
ADD hnl_mk*.rb /usr/local/bin/
17
20
ADD hanlon_microkernel/*.rb /usr/local/lib/ruby/hanlon_microkernel/
21
+ ADD hanlon_microkernel/facter/ /usr/local/lib/site_ruby/facter/
18
22
ADD entrypoint.sh /
19
23
ADD README.md /
20
24
21
- ENTRYPOINT [' /entrypoint.sh' ]
25
+ ENTRYPOINT [" /entrypoint.sh" ]
Original file line number Diff line number Diff line change 4
4
# Docker entrypoint script for Hanlon microkernel
5
5
# ----------------------------------------------------------------------------
6
6
set -e
7
+
7
8
declare -rx SCRIPT=${0##*/ }
8
9
10
+ # Setup to allow access to BMC from within container
11
+ modprobe ipmi_si
12
+ ln -s /host-dev/ipmi* /dev
13
+
9
14
# Default application if nothing is specified
10
15
if [ -z " ${1: 0: 1} " ]; then
11
16
set -- start_mk
14
19
case $1 in
15
20
start_mk)
16
21
set -- /bin/bash -c ' /usr/local/bin/hnl_mk_init.rb && read -p "waiting..."'
17
-
18
- # Setup to allow access to BMC from within container
19
- modprobe ipmi_si
20
- ln -s /host-dev/ipmi* /dev
21
22
;;
22
23
help|info)
23
24
set -- cat /README.md
@@ -27,4 +28,4 @@ case $1 in
27
28
esac
28
29
29
30
# echo "Executing: $@"
30
- exec " $@ "
31
+ exec " $@ "
You can’t perform that action at this time.
0 commit comments