I'm running Gitea at my Synology NAS which has dated Linux kernel not compatible with modern
git. Using latest Gitea image directly results in:error: unable to get random bytes for temporary file: Function not implemented
Luckily, that's easy to fix by getting older image and copying a new binary there. Could be done right in compose config (I'm using Portainer there):
networks:
gitea:
external: false
services:
server:
build:
dockerfile_inline: |
FROM gitea/gitea:1.25.5 AS old
FROM gitea/gitea:latest
COPY --from=old /usr/bin/git /usr/bin/git
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- /volume1/docker/gitea:/data
ports:
- "3000:3000"
- "6022:22"
#nas #synology #git #gitea