Skip to content

Commit

Permalink
fix: plone base image
Browse files Browse the repository at this point in the history
WEB-4204
  • Loading branch information
remdub committed Jan 27, 2025
1 parent aded695 commit 1f5954b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
7 changes: 4 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
1.3.16 (unreleased)
-------------------

- Migrate to Plone 6.0.14
[boulch]

- Migrate to Python 3.12, Plone 6.0.14
[boulch, remdub]

- imio.smartweb.core 1.2.82

Expand Down Expand Up @@ -53,7 +54,7 @@
-------------------

- imio.smartweb.core 1.2.76

- WEB-4199 : Fix missing contacts when there are more contacts than default Plone batching
[boulch]

Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM harbor.imio.be/common/plone-base:6.0.9-ubuntu as builder
FROM harbor.imio.be/common/plone-base:6.0.14 as builder

LABEL maintainer="Benoît Suttor <benoit.suttor@imio.be>"
ENV PIP=24.3.1 \
Expand Down Expand Up @@ -43,7 +43,8 @@ RUN su -c "buildout -c prod.cfg -t 30 -N" -s /bin/sh imio
# clean up old eggs
# RUN for egg in `ls /plone/eggs/ | cut -d '-' -f 1 | uniq`; do rm -rfv `ls -td /plone/eggs/$egg-* | awk 'NR>1'`; done

FROM harbor.imio.be/common/plone-base:6.0.9-ubuntu

FROM harbor.imio.be/common/plone-base:6.0.14
ENV PIP=24.3.1 \
ZC_BUILDOUT=3.3 \
SETUPTOOLS=75.6.0 \
Expand Down Expand Up @@ -79,7 +80,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN curl -L https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_amd64.deb > /tmp/dumb-init.deb && dpkg -i /tmp/dumb-init.deb && rm /tmp/dumb-init.deb
COPY --from=builder /usr/local/bin/py-spy /usr/local/bin/py-spy
COPY --chown=imio --from=builder /plone .
COPY --from=builder /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
COPY --from=builder /usr/local/lib/python3.12/dist-packages /usr/local/lib/python3.12/dist-packages
COPY --chown=imio docker-initialize.py docker-entrypoint.sh /

USER imio
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ buildout.cfg:
ln -fs dev.cfg buildout.cfg

bin/buildout: bin/pip buildout.cfg
bin/pip install -I -r requirements.txt
bin/uv pip install -r requirements.txt

buildout: bin/instance

bin/instance: bin/buildout
bin/buildout

bin/pip:
python3.10 -m venv .
bin/pip install setuptools==69.0.2
python3.12 -m venv .
bin/pip install uv

run: bin/instance
bin/instance fg
Expand All @@ -42,7 +42,7 @@ test-image: bin/pip
#make local-test-image

local-test-image:
python3 -m venv .
python3.12 -m venv .
./bin/pip install -r tests/requirements.txt
./bin/pytest -s tests

Expand Down
4 changes: 2 additions & 2 deletions versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ imio.smartweb.core = 1.2.82
imio.smartweb.policy = 1.2.6
imio.smartweb.locales = 1.1.21

Authomatic = 1.0.0
Authomatic = 1.3.0
backcall = 0.2.0
collective.anysurfer = 1.4.7
collective.autopublishing = 1.1b1
Expand Down Expand Up @@ -44,7 +44,7 @@ jwcrypto = 1.5.0
matplotlib-inline = 0.1.6
more_itertools = 9.1.0
parso = 0.8.3
pas.plugins.authomatic = 1.1.1
pas.plugins.authomatic = 1.4.0
pas.plugins.imio = 2.0.9
perfmetrics = 3.3.0
pexpect = 4.8.0
Expand Down

0 comments on commit 1f5954b

Please sign in to comment.