forked from apel/ssm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (25 loc) · 956 Bytes
/
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
26
27
28
29
30
31
32
FROM centos:7
MAINTAINER APEL Administrators <[email protected]>
# Copy the SSM Git repository to /tmp/ssm
COPY . /tmp/ssm
# Then set /tmp/ssm as the working directory
WORKDIR /tmp/ssm
# Add the EPEL repo so we can get pip
RUN yum -y install epel-release && yum clean all
# Then get pip
RUN yum -y install python-pip && yum clean all
# Install the system requirements of python-ldap
RUN yum -y install gcc python-devel openldap-devel && yum clean all
# Install libffi, a requirement of openssl
RUN yum -y install libffi-devel && yum clean all
# Install the system requirements of ssm
RUN yum -y install openssl && yum clean all
# Install the python requirements of SSM
RUN pip install -r requirements.txt
# Then install the SSM
RUN python setup.py install
# Set the working directory back to /
WORKDIR /
# Then delete the temporary copy of the SSM Git repository
# as there is no need for it after the image has been built.
RUN rm -rf /tmp/ssm