Compare commits

...

18 commits

Author SHA1 Message Date
martkaczmarek
3bcdc3128a
Merge 3db494948f into 825536a998 2026-06-19 08:06:56 +04:00
github-actions
825536a998 chore: Update example.env
Some checks failed
Core / Build Stable / v15_test (push) Has been cancelled
Lint / lint (push) Has been cancelled
Core / Build Stable / v16_test (push) Has been cancelled
Core / Build Stable / v15_publish (push) Has been cancelled
Core / Build Stable / v16_publish (push) Has been cancelled
Core / Build Stable / Update example.env and pwd.yml (push) Has been cancelled
Core / Build Stable / Release Helm (push) Has been cancelled
2026-06-16 22:05:53 +00:00
Daniel Radl
91fc59a134
Merge pull request #1926 from frappe/dependabot/pip/pytest-9.1.0
chore(deps): bump pytest from 9.0.3 to 9.1.0
2026-06-15 11:00:41 +02:00
dependabot[bot]
f5eae9dffc
chore(deps): bump pytest from 9.0.3 to 9.1.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 9.0.3 to 9.1.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/9.0.3...9.1.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-15 08:25:30 +00:00
martkaczmarek
3db494948f . 2026-05-22 14:58:14 +02:00
martkaczmarek
9b2f7e24d4 Pycups env and install 2026-05-22 14:46:44 +02:00
martkaczmarek
8f5d2f12e9 Pycups env and install 2026-05-22 14:37:46 +02:00
martkaczmarek
93b21ec6ae Merge branch 'feature-cups' of https://github.com/martkaczmarek/frappe_docker into feature-cups 2026-05-22 13:50:21 +02:00
martkaczmarek
d628689eae Pycups env and install
Pycups env and install
2026-05-22 13:48:26 +02:00
martkaczmarek
d77993f400 Pycups env and install 2026-05-22 13:44:32 +02:00
martkaczmarek
94aa96c624 Pycups env and install 2026-05-22 13:41:41 +02:00
martkaczmarek
e15ac47fb0 Pycups env and install 2026-05-22 13:38:37 +02:00
martkaczmarek
311b2b9fc6 Pycups env and install 2026-05-22 13:34:54 +02:00
martkaczmarek
196728c9be Pycups env and install 2026-05-22 13:30:13 +02:00
martkaczmarek
c18ef2b69a Pycups env and install 2026-05-22 13:19:00 +02:00
martkaczmarek
99db74d389
Merge branch 'main' into feature-cups 2026-05-22 12:53:38 +02:00
martkaczmarek
b3d46de656 Add INSTALL_PYCUPS arg and install packages if value is true 2026-05-04 18:32:59 +02:00
martkaczmarek
753d846bb0 Include INSTALL_PYCUPS in docs 2026-05-04 18:30:10 +02:00
7 changed files with 34 additions and 10 deletions

View file

@ -96,6 +96,7 @@ See [Automated Builds and Deployment](../03-production/06-automated-builds-and-d
| PYTHON_VERSION | Python version for the base image |
| NODE_VERSION | Node.js version |
| WKHTMLTOPDF_VERSION | wkhtmltopdf version |
| INSTALL_PYCUPS | Set true to install pycups and its dependencies; see <https://docs.frappe.io/erpnext/print-settings> |
| INSTALL_CHROMIUM | Configure chromium installation, defaults to `true` - needed for Frappe Workbench version >15 |
| **bench only** | |
| DEBIAN_BASE | Debian base version for the bench image, defaults to `bookworm` |

View file

@ -1,6 +1,6 @@
# Reference: https://github.com/frappe/frappe_docker/blob/main/docs/02-setup/04-env-variables.md
ERPNEXT_VERSION=v16.22.0
ERPNEXT_VERSION=v16.23.0
DB_PASSWORD=123

View file

@ -5,6 +5,7 @@ LABEL author=frappé
ARG GIT_REPO=https://github.com/frappe/bench.git
ARG GIT_BRANCH=v5.x
ARG INSTALL_CHROMIUM=true
ARG INSTALL_PYCUPS=false
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
@ -79,6 +80,8 @@ RUN apt-get update \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
chromium-headless-shell; \
fi \
# Install cups
&& if [ "$INSTALL_PYCUPS" != "false" ]; then apt-get install -y libcups2-dev; fi \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
@ -121,6 +124,10 @@ RUN git clone --depth 1 https://github.com/pyenv/pyenv.git .pyenv \
&& echo 'eval "$(pyenv init --path)"' >>~/.profile \
&& echo 'eval "$(pyenv init -)"' >>~/.bashrc
# Install pycups
RUN if [ "$INSTALL_PYCUPS" != "false" ]; then pip install --no-cache-dir pycups; fi \
# Clone and install bench in the local user home directory
# For development, bench source is located in ~/.bench
ENV PATH=/home/frappe/.local/bin:$PATH
@ -151,6 +158,8 @@ RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh |
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \
&& echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> ~/.bashrc
# Install pycups
RUN if [ "$INSTALL_PYCUPS" != "false" ]; then /home/frappe/frappe-bench/env/bin/pip install --no-cache-dir pycups; fi
EXPOSE 8000-8005 9000-9005 6787

View file

@ -13,6 +13,7 @@ ARG INSTALL_CHROMIUM=true
ARG NODE_VERSION=24.13.0
ENV NVM_DIR=/home/frappe/.nvm
ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
ARG INSTALL_PYCUPS=false
RUN useradd -ms /bin/bash frappe \
&& apt-get update \
@ -62,6 +63,8 @@ RUN useradd -ms /bin/bash frappe \
&& curl -sLO https://github.com/wkhtmltopdf/packaging/releases/download/$WKHTMLTOPDF_VERSION/$downloaded_file \
&& apt-get install -y ./$downloaded_file \
&& rm $downloaded_file \
# Install cups
&& if [ "$INSTALL_PYCUPS" != "false" ]; then apt-get install -y libcups2-dev; fi \
# Chromium
&& if [ "$INSTALL_CHROMIUM" != "false" ]; then \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
@ -72,6 +75,8 @@ RUN useradd -ms /bin/bash frappe \
&& rm -fr /etc/nginx/sites-enabled/default \
&& mkdir -p /etc/nginx/snippets \
&& pip3 install frappe-bench \
# Install pycups
&& if [ "$INSTALL_PYCUPS" != "false" ]; then pip install --no-cache-dir pycups; fi \
# Fixes for non-root nginx and logs to stdout
&& sed -i '/user www-data/d' /etc/nginx/nginx.conf \
&& ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log \
@ -119,6 +124,8 @@ RUN apt-get update \
libbz2-dev \
&& rm -rf /var/lib/apt/lists/*
USER frappe
ARG FRAPPE_BRANCH=version-16

View file

@ -9,6 +9,7 @@ ARG INSTALL_CHROMIUM=true
ARG NODE_VERSION=24.13.0
ENV NVM_DIR=/home/frappe/.nvm
ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
ARG INSTALL_PYCUPS=false
RUN useradd -ms /bin/bash frappe \
&& apt-get update \
@ -58,6 +59,8 @@ RUN useradd -ms /bin/bash frappe \
&& curl -sLO https://github.com/wkhtmltopdf/packaging/releases/download/$WKHTMLTOPDF_VERSION/$downloaded_file \
&& apt-get install -y ./$downloaded_file \
&& rm $downloaded_file \
# Install cups
&& if [ "$INSTALL_PYCUPS" != "false" ]; then apt-get install -y libcups2-dev; fi \
# Chromium
&& if [ "$INSTALL_CHROMIUM" != "false" ]; then \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
@ -68,6 +71,8 @@ RUN useradd -ms /bin/bash frappe \
&& rm -fr /etc/nginx/sites-enabled/default \
&& mkdir -p /etc/nginx/snippets \
&& pip3 install frappe-bench \
# Install pycups
&& if [ "$INSTALL_PYCUPS" != "false" ]; then /home/frappe/frappe-bench/env/bin/pip install --no-cache-dir pycups; fi \
# Fixes for non-root nginx and logs to stdout
&& sed -i '/user www-data/d' /etc/nginx/nginx.conf \
&& ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log \
@ -111,6 +116,8 @@ RUN apt-get update \
libbz2-dev \
&& rm -rf /var/lib/apt/lists/*
USER frappe
FROM build AS builder

16
pwd.yml
View file

@ -1,6 +1,6 @@
services:
backend:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
deploy:
@ -16,7 +16,7 @@ services:
MARIADB_ROOT_PASSWORD: admin
configurator:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
deploy:
@ -45,7 +45,7 @@ services:
- logs:/home/frappe/frappe-bench/logs
create-site:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
deploy:
@ -101,7 +101,7 @@ services:
- db-data:/var/lib/mysql
frontend:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
depends_on:
@ -127,7 +127,7 @@ services:
- "8080:8080"
queue-long:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
deploy:
@ -146,7 +146,7 @@ services:
FRAPPE_REDIS_QUEUE: redis://redis-queue:6379
queue-short:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
deploy:
@ -183,7 +183,7 @@ services:
condition: on-failure
scheduler:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
deploy:
@ -197,7 +197,7 @@ services:
- logs:/home/frappe/frappe-bench/logs
websocket:
image: frappe/erpnext:v16.22.0
image: frappe/erpnext:v16.23.0
networks:
- frappe_network
deploy:

View file

@ -1 +1 @@
pytest==9.0.3
pytest==9.1.0