Skip to content

Instantly share code, notes, and snippets.

@dwt
Last active September 10, 2024 17:01
Show Gist options
  • Save dwt/a4ffc210f01ac3b6a6417d26a5147da0 to your computer and use it in GitHub Desktop.
Save dwt/a4ffc210f01ac3b6a6417d26a5147da0 to your computer and use it in GitHub Desktop.
# run with:
# docker build --progress plain --no-cache-filter 'reproduction' --file Dockerfile.reproduction .
FROM ubuntu:24.04 AS base
# Install Zope/ZEO Dependencies
RUN apt-get update
RUN apt-get install -y ca-certificates
RUN update-ca-certificates
RUN apt-get -y upgrade
RUN apt-get install -y locales locales-all
RUN apt-get install -y make gcc g++ git build-essential
RUN apt-get install -y python3 python3-dev python3-venv
RUN apt-get install -y default-libmysqlclient-dev build-essential pkg-config
RUN apt-get install -y slapd libldap2-dev libsasl2-dev
RUN apt-get install -y memcached
RUN adduser --disabled-password zope && usermod -aG sudo zope
USER zope
WORKDIR /home/zope/
ENV VIRTUAL_ENV=/home/zope/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
RUN python3 -m venv venv
RUN pip install -U pip wheel setuptools
RUN pip install -U -e git+https://github.com/zms-publishing/ZMS.git@fb_pip_using_pyproject_toml#egg=ZMS
RUN pip install -r https://raw.githubusercontent.com/zms-publishing/ZMS5/master/requirements-full.txt
FROM base AS reproduction
RUN <<NUR
python <<EOD
import pkgutil
import Products
from pprint import pprint
pprint(Products.__path__)
pprint(list(pkgutil.iter_modules(Products.__path__)))
pprint(Products.__path__)
import Products.zms
pprint(Products.zms.__path__)
EOD
NUR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment