mirror of
https://github.com/casjaysdevdocker/forgejo
synced 2026-06-23 20:01:00 -04:00
43d8e1dfc2517926baee4d67cb7874d91d2f8ddc
Update the embedded entrypoint copies in rootfs/ to match the upstream template change. Internal state files renamed to dotfiles so they're not matched by `/run/*.pid` cleanup globs: - /run/init.d/entrypoint.pid -> /run/.entrypoint.pid - /run/no_exit.pid -> /run/.no_exit.pid - /run/backup.pid -> /run/.backup.pid - /run/__start_init_scripts.pid -> /run/.start_init_scripts.pid Per-service PIDs in /run/init.d/ are unchanged. rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/functions/entrypoint.sh rootfs/usr/local/etc/docker/init.d/01-dockerd.sh rootfs/usr/local/etc/docker/init.d/05-forgejo.sh rootfs/usr/local/etc/docker/init.d/99-act_runner.sh rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
👋 Welcome to forgejo 🚀
forgejo README
Install my system scripts
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
Automatic install/update
dockermgr update forgejo
Install and run container
dockerHome="/var/lib/srv/$USER/docker/casjaysdevdocker/forgejo/forgejo/latest/volumes"
mkdir -p "/var/lib/srv/$USER/docker/forgejo/volumes"
git clone "https://github.com/dockermgr/forgejo" "$HOME/.local/share/CasjaysDev/dockermgr/forgejo"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/forgejo/rootfs/." "$dockerHome/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-forgejo-latest \
--hostname forgejo \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$dockerHome/data:/data:z" \
-v "$dockerHome/config:/config:z" \
-p 80:80 \
casjaysdevdocker/forgejo:latest
via docker-compose
version: "2"
services:
ProjectName:
image: casjaysdevdocker/forgejo
container_name: casjaysdevdocker-forgejo
environment:
- TZ=America/New_York
- HOSTNAME=forgejo
volumes:
- "/var/lib/srv/$USER/docker/casjaysdevdocker/forgejo/forgejo/latest/volumes/data:/data:z"
- "/var/lib/srv/$USER/docker/casjaysdevdocker/forgejo/forgejo/latest/volumes/config:/config:z"
ports:
- 80:80
restart: always
Get source files
dockermgr download src casjaysdevdocker/forgejo
OR
git clone "https://github.com/casjaysdevdocker/forgejo" "$HOME/Projects/github/casjaysdevdocker/forgejo"
Build container
cd "$HOME/Projects/github/casjaysdevdocker/forgejo"
buildx
Authors
Description
Languages
Shell
95.3%
Dockerfile
4.7%