[Documentation] External Render #3839

Closed
opened 2025-11-02 05:27:48 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Th3Whit3Wolf on GitHub (Aug 25, 2019).

Current

FROM gitea/gitea:1.6.0
[...]

COPY custom/app.ini /data/gitea/conf/app.ini
[...]

RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng python-dev py-pip python3-dev py3-pip
# install any other package you need for your external renderers

RUN pip3 install --upgrade pip
RUN pip3 install -U setuptools
RUN pip3 install jupyter matplotlib docutils 
# add above any other python package you may need to install 

This will fail to install jupyter

Working

Current

FROM gitea/gitea:1.9.2
[...]

COPY custom/app.ini /data/gitea/conf/app.ini
[...]

RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng python-dev py-pip python3-dev py3-pip py3-zmq
# install any other package you need for your external renderers

RUN pip3 install --upgrade pip
RUN pip3 install -U setuptools
RUN pip3 install jupyter matplotlib docutils 
# add above any other python package you may need to install 

Adding the py3-zmq fixes the issue

Originally created by @Th3Whit3Wolf on GitHub (Aug 25, 2019). ## Current ```Dockerfile FROM gitea/gitea:1.6.0 [...] COPY custom/app.ini /data/gitea/conf/app.ini [...] RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng python-dev py-pip python3-dev py3-pip # install any other package you need for your external renderers RUN pip3 install --upgrade pip RUN pip3 install -U setuptools RUN pip3 install jupyter matplotlib docutils # add above any other python package you may need to install ``` This will fail to install jupyter ## Working ## Current ```Dockerfile FROM gitea/gitea:1.9.2 [...] COPY custom/app.ini /data/gitea/conf/app.ini [...] RUN apk --no-cache add asciidoctor freetype freetype-dev gcc g++ libpng python-dev py-pip python3-dev py3-pip py3-zmq # install any other package you need for your external renderers RUN pip3 install --upgrade pip RUN pip3 install -U setuptools RUN pip3 install jupyter matplotlib docutils # add above any other python package you may need to install ``` Adding the py3-zmq fixes the issue
GiteaMirror added the type/docsissue/stale labels 2025-11-02 05:27:48 -06:00
Author
Owner

@gary-kim commented on GitHub (Aug 25, 2019):

Thank you for noticing this.
Want to make a PR?

@gary-kim commented on GitHub (Aug 25, 2019): Thank you for noticing this. Want to make a PR?
Author
Owner

@bwenrich commented on GitHub (Sep 6, 2019):

Able to reproduce the issue & the suggested solution in Docker 19.03 on Fedora 30, from the gitea/gitea:1.9.2 image. Could not build the image based on gitea/gitea:1.6.0

Before including "py3-zmq", the error is produced (along with much other output from gcc) during the jupyter install

Running setup.py install for pyzmq: finished with status 'error'
[...]
fatal error: zmq.h: No such file or directory
  #include "zmq.h"
compilation terminated
[...]
Warning: Couldn't find an acceptable libzmq on the system

Please excuse my fork above - I don't mean to be rude or distract from any ongoing PR.
I am studying the Contributing guide & following this Issue to understand the process

@bwenrich commented on GitHub (Sep 6, 2019): Able to reproduce the issue & the suggested solution in Docker 19.03 on Fedora 30, from the gitea/gitea:1.9.2 image. Could not build the image based on gitea/gitea:1.6.0 Before including "py3-zmq", the error is produced (along with much other output from gcc) during the jupyter install ``` Running setup.py install for pyzmq: finished with status 'error' [...] fatal error: zmq.h: No such file or directory #include "zmq.h" compilation terminated [...] Warning: Couldn't find an acceptable libzmq on the system ``` Please excuse my fork above - I don't mean to be rude or distract from any ongoing PR. I am studying the Contributing guide & following this Issue to understand the process
Author
Owner

@stale[bot] commented on GitHub (Nov 5, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Nov 5, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@lunny commented on GitHub (Nov 5, 2019):

closed by #8262

@lunny commented on GitHub (Nov 5, 2019): closed by #8262
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3839