Browse Source

minor changes to Gitea

feature/startup-from-labels
Mario Alegre 5 years ago
parent
commit
3cb7eba42b
  1. 14
      src/gitea/Containerfile
  2. 4
      src/gitea/assets/app.ini.esh
  3. 2
      src/gitea/bugfix/cronfix

14
src/gitea/Containerfile

@ -8,15 +8,15 @@ FROM localhost/debian:latest
LABEL deployopts="\
-p 9081:80 \
-p 9022:22 \
-v /tank/files/git:/vol/git \
-v /tank/files/db/gitea:/vol/db"
-v /srv/vol/gitea/git:/vol/git \
-v /srv/vol/gitea/db:/vol/db"
# make sure mount directories exist
RUN mkdir -p /vol/git /vol/db
# Build variables
# version of Gitea
# see the Gitea github page to determine the latest stable release
ARG giteav=1.11.5
ARG giteav=1.12.1
# version of postgres
ARG psqlv=11
# uid that the files owner user should have
@ -82,11 +82,3 @@ COPY assets/gitea.service /etc/systemd/system/
###
COPY assets/crontab /root/
RUN crontab -u gitea /root/crontab
###
### Bugfix
###
# execute command to workaround bug in cron
COPY bugfix/cronfix /root/
RUN chmod +x /root/cronfix && /root/cronfix

4
src/gitea/assets/app.ini.esh

@ -26,8 +26,8 @@ PATH = /var/lib/gitea/data/gitea.db
ROOT = /vol/git/repos
[server]
DOMAIN = medusa.alemor.org
ROOT_URL = http://medusa.alemor.org/git/
DOMAIN = git.alemor.org
ROOT_URL = https://git.alemor.org/
HTTP_PORT = 80
START_SSH_SERVER = true
SSH_PORT = 4323

2
src/gitea/bugfix/cronfix

@ -1,2 +0,0 @@
#!/bin/sh
sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/cron
Loading…
Cancel
Save