forked from target/REDstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (35 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
42 lines (35 loc) · 1.06 KB
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
# This Dockerfile creates the base image for OSS REDstack
FROM python:2.7.13-alpine3.6
MAINTAINER "Lucas Capistrant: Lucas.Capistrant@target.com"
# Alpine Package Downloads
RUN apk update \
&& apk add python2-dev \
musl-dev \
linux-headers \
gcc \
openldap-dev \
libffi-dev \
make \
rsync \
perl-socket-getaddrinfo \
openssh \
curl \
git \
ruby \
ruby-dev \
ruby-rake \
ruby-bigdecimal \
ruby-json \
ruby-bundler
# Copy REDstack
RUN mkdir -p /opt/redstack \
/var/log/stacker \
/var/stacker/deployments
COPY ./scripts/run_redstack.sh /root/run_redstack.sh
COPY ./ /opt/redstack/REDstack/
# Install REDstack gems and python modules
RUN bundle install --gemfile=/opt/redstack/REDstack/Gemfile
RUN pip install -r /opt/redstack/REDstack/requirements.txt
# Add sources root to PYTHONPATH for package import
ENV PYTHONPATH=/opt/redstack/REDstack
RUN berks vendor /opt/redstack/cookbooks -b /opt/redstack/REDstack/cookbook/Berksfile