Compare commits

..

3 Commits

Author SHA1 Message Date
5474dbe720 Make Gitea display graphs in notebooks
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-19 12:54:44 +02:00
2586773680 Update todos 2022-09-19 12:54:12 +02:00
13e48a54c3 Add notebook support to Gitea 2022-09-19 12:53:37 +02:00
3 changed files with 14 additions and 2 deletions

View File

@ -10,3 +10,4 @@
- [x] Use Gitea instead of GitLab - [x] Use Gitea instead of GitLab
- [ ] Add drone exec runner for Nix builds with shared `/nix` - [ ] Add drone exec runner for Nix builds with shared `/nix`
- [ ] Lint caddy file, add gzip and disable admin interface - [ ] Lint caddy file, add gzip and disable admin interface
- [x] Make Gitea display graphs in Notebooks (see https://docs.gitea.io/en-us/external-renderers/).

5
docker/gitea/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM gitea/gitea:1.17.1
RUN apk --no-cache add gcc python3-dev py3-pip linux-headers musl-dev libffi-dev
RUN pip3 install --upgrade pip
RUN pip3 install jupyter

View File

@ -2,7 +2,8 @@ version: "3"
services: services:
gitea: gitea:
image: gitea/gitea:1.17.1 image: pbrinkmeier/gitea
build: .
restart: always restart: always
environment: environment:
# Ref: https://docs.gitea.io/en-us/config-cheat-sheet # Ref: https://docs.gitea.io/en-us/config-cheat-sheet
@ -41,6 +42,11 @@ services:
GITEA__mailer__PASSWD: "${GITEA_SMTP_PASSWORD}" GITEA__mailer__PASSWD: "${GITEA_SMTP_PASSWORD}"
GITEA__openid__ENABLE_OPENID_SIGNIN: "false" GITEA__openid__ENABLE_OPENID_SIGNIN: "false"
GITEA__openid__ENABLE_OPENID_SIGNUP: "false" GITEA__openid__ENABLE_OPENID_SIGNUP: "false"
GITEA__markup_0x2E_jupyter__ENABLED: "true"
GITEA__markup_0x2E_jupyter__FILE_EXTENSIONS: ".ipynb"
GITEA__markup_0x2E_jupyter__RENDER_COMMAND: "jupyter nbconvert --stdin --stdout --to html --template basic"
GITEA__markup_0x2E_jupyter__IS_INPUT_FILE: "false"
GITEA__markup_0x2E_sanitizer_0x2E_jupyter_0x2E_img__ALLOW_DATA_URI_IMAGES: "true"
volumes: volumes:
- /var/lib/pbri/docker/gitea:/data - /var/lib/pbri/docker/gitea:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro