-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 814 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 814 Bytes
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
# Copyright 2016, EMC, Inc.
ARG repo=rackhd
ARG tag=devel
FROM ${repo}/on-tasks:${tag}
ARG SNMP_VERSION=snmp-mibs-downloader_1.1_all.deb
COPY . /RackHD/on-taskgraph/
WORKDIR /RackHD/on-taskgraph
RUN mkdir -p ./node_modules \
&& npm install --production \
&& rm -r ./node_modules/on-tasks ./node_modules/on-core ./node_modules/di \
&& ln -s /RackHD/on-tasks ./node_modules/on-tasks \
&& ln -s /RackHD/on-core ./node_modules/on-core \
&& ln -s /RackHD/on-core/node_modules/di ./node_modules/di \
&& apt-get install -y wget smistrip libsnmp-dev snmp \
&& wget http://http.us.debian.org/debian/pool/non-free/s/snmp-mibs-downloader/$SNMP_VERSION \
&& dpkg -i $SNMP_VERSION \
&& download-mibs \
&& rm -rf /var/lib/apt/lists/*
VOLUME /var/lib/dhcp
CMD [ "node", "/RackHD/on-taskgraph/index.js" ]