Skip to content

Commit

Permalink
chore: refactored build
Browse files Browse the repository at this point in the history
  • Loading branch information
olimpiurob committed Jan 19, 2024
1 parent 5148fa7 commit fbefb6d
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 338 deletions.
27 changes: 11 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
FROM eeacms/plone:5.2.9-32
FROM eeacms/plone:5.2.13-22

ENV GRAYLOG_FACILITY=wise-plone

COPY site.cfg /plone/instance/
RUN buildDeps="build-essential libldap2-dev libsasl2-dev libssl-dev git vim xz-utils curl" \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps

RUN mv /plone/instance/versions.cfg /plone/instance/eea-versions.cfg

COPY src/docker/* /
COPY src/plone/* /plone/instance/

RUN curl "https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb" -L -o "wkhtmltopdf.deb"
RUN ar x wkhtmltopdf.deb
RUN tar Jxvf data.tar.xz
RUN mkdir /plone/instance/parts/wkhtmltopdf
RUN mv usr/local/bin/wkhtmltopdf /plone/instance/parts/wkhtmltopdf/wkhtmltopdf

RUN /docker-setup.sh
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& curl "https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb" -L -o "wkhtmltopdf.deb" \
&& ar x wkhtmltopdf.deb \
&& tar Jxvf data.tar.xz \
&& mkdir /plone/instance/parts/wkhtmltopdf \
&& mv usr/local/bin/wkhtmltopdf /plone/instance/parts/wkhtmltopdf/wkhtmltopdf \
&& find /plone -not -user plone -exec chown plone:plone {} \+ \
&& gosu plone buildout -c site.cfg
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pipeline {
environment {
registry = 'eeacms/marine-backend'
template = 'templates/marine-backend'
GIT_NAME = 'marine-backend'
}

agent any
Expand Down
4 changes: 3 additions & 1 deletion devel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM eeacms/plonesaas:5.2.4-68
FROM eeacms/marine-backend

COPY devel.cfg /plone/instance/

COPY docker-setup.sh /
RUN /docker-setup.sh
16 changes: 16 additions & 0 deletions devel/devel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[configuration]
eggs +=
collective.MockMailHost

[buildout]
extends = develop.cfg

parts +=
test

[test]
recipe = collective.xmltestreport
defaults = ['--auto-color', '--auto-progress', '--ignore_dir=.git', '--ignore_dir=bower_components', '--ignore_dir=node_modules', '--ignore_dir=src']
eggs =
${configuration:eggs}
${configuration:test-packages}
2 changes: 2 additions & 0 deletions src/plone/site.cfg → site.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ wise.msfd = git https://github.com/eea/wise.msfd.git branch=plone5
eea.privacyscreen = git https://github.com/eea/eea.privacyscreen.git branch=master

[versions]
eea.api.dataconnector = 9.0
plone.rest = 2.0.0a5
collective.z3cform.datagridfield = 1.5.3
rdflib-jsonld = 0.6.2
SQLAlchemy = 1.4.46
# START collective.exportimport
collective.exportimport = 1.7
Expand Down
1 change: 0 additions & 1 deletion src/docker/calculate_next_release.sh

This file was deleted.

58 changes: 0 additions & 58 deletions src/docker/docker-setup.sh

This file was deleted.

223 changes: 0 additions & 223 deletions src/docker/github.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/plone/buildout.cfg

This file was deleted.

30 changes: 0 additions & 30 deletions src/plone/sources.cfg

This file was deleted.

Loading

0 comments on commit fbefb6d

Please sign in to comment.