Add notebook support to Gitea
This commit is contained in:
parent
a71f915e06
commit
13e48a54c3
5
docker/gitea/Dockerfile
Normal file
5
docker/gitea/Dockerfile
Normal 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
|
@ -2,7 +2,8 @@ version: "3"
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:1.17.1
|
||||
image: pbrinkmeier/gitea
|
||||
build: .
|
||||
restart: always
|
||||
environment:
|
||||
# Ref: https://docs.gitea.io/en-us/config-cheat-sheet
|
||||
@ -41,6 +42,10 @@ services:
|
||||
GITEA__mailer__PASSWD: "${GITEA_SMTP_PASSWORD}"
|
||||
GITEA__openid__ENABLE_OPENID_SIGNIN: "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"
|
||||
volumes:
|
||||
- /var/lib/pbri/docker/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
|
Loading…
x
Reference in New Issue
Block a user