-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_smi-server
51 lines (42 loc) · 1.46 KB
/
Dockerfile_smi-server
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
######## Start builder #######
FROM ubuntu:20.04
USER root
# Required so that pipes work properly in the Dockerfile
SHELL [ "/bin/bash", "-o", "pipefail", "-c" ]
# Package installations
RUN apt-get update && \
apt-get install -y \
ack-grep \
build-essential \
curl \
libssl-dev \
vim
# Pegasus release file and key paths
ENV PEGASUS_SMI_ROOT=/root/smi
ENV PEGASUS_HOME=${PEGASUS_SMI_ROOT}/home
# Create directory structure
RUN mkdir -p ${PEGASUS_HOME}
# Run settings
# Settings below that are flags, with values set to true, enable the action
# simply through the existance of the variable. The variables value has no
# effect. Note that there are almost NO environment variables to control
# pegasus execution. Excution variations are controled through the
# config variables that can be viewed through the clienc cimconfig
# and the web admin interface
# TODO: remove the following after we confirm that they are not needed
# ENV PEGASUS_DEBUG=true
# ENV PEGASUS_PLATFORM=LINUX_X86_64_GNU
# ENV PEGASUS_USE_DEFAULT_MESSAGES=true
# ENV PEGASUS_HAS_SSL=true
# ENV PEGASUS_CLIENT_TRACE_ENABLE=true
# ENV PEGASUS_ENABLE_EXECQUERY=true
# ENV PEGASUS_PAM_AUTHENTICATION=true
# ENV OPENSSL=/usr
ENV PATH=${PEGASUS_HOME}/bin:$PATH
# Add makefile for using this build image
COPY ./home ${PEGASUS_HOME}
# Build folder
WORKDIR ${PEGASUS_SMI_ROOT}
# Build the binaries and run the cimserver
ENTRYPOINT ["/bin/bash", "-l", "-c"]
CMD ["cimserver; tail -f /dev/null"]