This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 794
/
Dockerfile
57 lines (49 loc) · 2.07 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
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
52
53
54
55
56
57
# Copyright 2018 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM ubuntu:18.04
MAINTAINER Netflix Open Source Development <talent@netflix.com>
ENV SECURITY_MONKEY_VERSION=v1.1.3 \
SECURITY_MONKEY_SETTINGS=/usr/local/src/security_monkey/env-config/config-docker.py
SHELL ["/bin/bash", "-c"]
WORKDIR /usr/local/src/security_monkey
COPY requirements.txt /usr/local/src/security_monkey/
RUN echo "UTC" > /etc/timezone\
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && apt-get install -y \
python3.7 \
python3-pip
RUN python3.7 -m pip install pip
RUN apt-get update && apt-get install -y \
python3-distutils \
python3-setuptools
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get install --no-install-recommends -y build-essential && \
apt-get install --no-install-recommends -y wget postgresql postgresql-contrib libpq-dev libffi-dev libxml2-dev libxmlsec1-dev && \
apt-get clean -y && \
pip3 install setuptools --upgrade && \
pip3 install pip --upgrade && \
hash -d pip3 && \
pip3 install "urllib3[secure]" --upgrade && \
pip3 install google-compute-engine && \
pip3 install cloudaux\[gcp\] && \
pip3 install cloudaux\[openstack\] && \
pip3 install python3-saml && \
pip3 install -r requirements.txt
COPY . /usr/local/src/security_monkey
RUN pip3 install ."[onelogin]" && \
/bin/mkdir -p /var/log/security_monkey/ && \
/usr/bin/touch /var/log/security_monkey/securitymonkey.log
EXPOSE 5000