forked from waldur/waldur-mastermind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (58 loc) · 1.86 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
58
59
60
61
62
63
64
65
66
67
68
FROM centos:centos7
LABEL summary="Waldur Mastermind REST API Image" \
vendor="OpenNode" \
license="MIT" \
maintainer="Victor Mireyev <[email protected]>" \
description="Waldur Cloud Brokerage Platform" \
url="https://waldur.com"
# CentOS 7 docker image does not define preferred locale.
# That's why ANSI_X3.4-1968 encoding is used by default.
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
# Add tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
# Add gosu
ENV GOSU_VERSION=1.12
ADD https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64 /usr/local/bin/gosu
RUN chmod +x /usr/local/bin/gosu
# Install build dependencies for Waldur MasterMind from RPM repositories
RUN yum clean all && \
yum --assumeyes install epel-release && \
yum --assumeyes update && \
yum --assumeyes install --setopt=tsflags=nodocs \
gcc \
git \
libffi-devel \
libjpeg-devel \
libxml2-devel \
libxslt-devel \
libyaml-devel \
openldap-devel \
openssl-devel \
python3-devel \
xmlsec1 \
xmlsec1-openssl \
zlib-devel \
logrotate \
mailcap \
openssl \
uwsgi-plugin-python36 \
gettext \
which \
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm \
freetype \
liberation-serif-fonts \
liberation-sans-fonts \
liberation-mono-fonts \
liberation-narrow-fonts && \
yum clean all && \
rm -fr /var/cache/*
RUN mkdir -p /usr/src/waldur
COPY . /usr/src/waldur/
COPY docker/rootfs /
# Delete all test directories
RUN cd /usr/src/waldur && find . -name "tests" -exec rm -r {} + && bash docker_build.sh
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["/bin/bash"]