-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (41 loc) · 1.69 KB
/
Dockerfile
File metadata and controls
49 lines (41 loc) · 1.69 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
43
44
45
46
47
48
49
# syntax=docker/dockerfile:1
FROM bitnami/git:latest AS git
WORKDIR /sources
RUN <<EOT
set -e
git clone --depth 1 --branch main https://github.com/simplesconsultoria/collective.exportimport.git
git clone --depth 1 --branch master https://github.com/interlegis/interlegis.portalmodelo.policy.git
git clone --depth 1 --branch master https://github.com/foreni-packages/hachoir-core.git
git clone --depth 1 --branch master https://github.com/foreni-packages/hachoir-metadata.git
git clone --depth 1 --branch master https://github.com/foreni-packages/hachoir-parser.git
EOT
FROM plone:4.3.19
ENV PIP=9.0.3 \
ZC_BUILDOUT=2.13.1 \
SETUPTOOLS=40.8.0 \
WHEEL=0.33.1
COPY apt/sources.list /etc/apt/sources.list
RUN <<EOT
set -e
buildDeps="dpkg-dev gcc libbz2-dev libc6-dev libjpeg62-turbo-dev libopenjp2-7-dev libpcre3-dev libssl-dev libtiff5-dev libxml2-dev libxslt1-dev wget zlib1g-dev libmagic-dev vim python-magic"
apt-get update
apt-get install -y --no-install-recommends $buildDeps
pip install pip==$PIP setuptools==$SETUPTOOLS zc.buildout==$ZC_BUILDOUT wheel==$WHEEL
EOT
COPY --chown=plone:plone buildout.cfg /plone/instance/
COPY --from=git --chown=plone:plone /sources /plone/instance/sources
# Sobreescreve o arquivo setup.py do policy
COPY patched_setup.py /plone/instance/sources/interlegis.portalmodelo.policy/setup.py
RUN <<EOT
set -e
cd /plone/instance
chown -R plone:plone /plone/instance
buildout -Nvvvvvv
EOT
RUN <<EOT
set -e
mkdir -p /export
find /data -not -user plone -exec chown plone:plone {} \+
find /export -not -user plone -exec chown plone:plone {} \+
find /plone -not -user plone -exec chown plone:plone {} \+
EOT