-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (21 loc) · 1.1 KB
/
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
ARG ARCH="amd64"
ARG OS="linux"
FROM --platform=${OS}/${ARCH} alpine:3
LABEL maintainer="Mahendra Paipuri <[email protected]>"
ARG ARCH="amd64"
ARG OS="linux"
COPY .build/${OS}-${ARCH}/ceems_exporter /bin/ceems_exporter
COPY .build/${OS}-${ARCH}/ceems_api_server /bin/ceems_api_server
COPY .build/${OS}-${ARCH}/ceems_lb /bin/ceems_lb
COPY .build/${OS}-${ARCH}/redfish_proxy /bin/redfish_proxy
COPY build/config/ceems_exporter/redfish_exporter_config.yml /etc/ceems_exporter/redfish_config.yml
COPY build/config/ceems_api_server/ceems_api_server.yml /etc/ceems_api_server/config.yml
COPY build/config/ceems_lb/ceems_lb.yml /etc/ceems_lb/config.yml
COPY build/config/redfish_proxy/redfish_proxy.yml /etc/redfish_proxy/config.yml
COPY LICENSE /LICENSE
ENV CEEMS_API_SERVER_CONFIG_FILE /etc/ceems_api_server/config.yml
ENV CEEMS_LB_CONFIG_FILE /etc/ceems_lb/config.yml
ENV REDFISH_PROXY_CONFIG_FILE /etc/redfish_proxy/config.yml
RUN mkdir -p /var/lib/ceems && chown -R root:root /etc/ceems_exporter /var/lib/ceems /etc/ceems_api_server /etc/ceems_lb /etc/redfish_proxy
USER root
WORKDIR /var/lib/ceems