aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.rootless
AgeCommit message (Collapse)Author
2023-02-21Add Bash and Zsh completion scripts (#22646)zeripath
This PR adds contrib scripts for bash and zsh completion. Simply call: ```bash source contrib/autocompletion/bash_autocomplete ``` or for Zsh: ```bash source contrib/autocompletion/zsh_autocomplete ``` Signed-off-by: Andrew Thornton <art27@cantab.net> --------- Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-02-03update to build with go1.20 (#22732)techknowlogick
as title --------- Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-04Add dumb-init to rootless docker (#21775)Michael Kriese
Add dumb-init as process reaper to the rootless image to reap defunct git processes.
2022-12-02Update to Alpine 3.17 (#21904)flynnnnnnnnnn
This pull request is for updating the base docker images to build with the latest version of Alpine.
2022-08-07Switch to building with go1.19 (#20695)techknowlogick
2022-07-12Fix various typos (#20338)luzpaz
* Fix various typos Found via `codespell -q 3 -S ./options/locale,./options/license,./public/vendor -L actived,allways,attachements,ba,befores,commiter,pullrequest,pullrequests,readby,splitted,te,unknwon` Co-authored-by: zeripath <art27@cantab.net>
2022-05-25alpine 3.16 (#19797)techknowlogick
Co-authored-by: 6543 <6543@obermui.de>
2022-03-16use go1.18 to build gitea (#19099)techknowlogick
* use go1.18 to build gitea& update min go version to 1.17 * bump in a few more places * add a few simple tests for isipprivate * update go.mod * update URL to https://go.dev/dl/ * golangci-lint * attempt golangci-lint workaround * change version * bump fumpt version * skip strings.title test * go mod tidy * update tests as some aren't private?? * update tests
2022-01-19Upgrade Alpine from 3.13 to 3.15 (#18050)v1.17.0-devGrzegorz Alibożek
* Upgrade alpine to 3.15 * Add executability test to entrypoint for too old dockers Signed-off-by: Andrew Thornton <art27@cantab.net> * Update docker/rootless/usr/local/bin/docker-entrypoint.sh Co-authored-by: zeripath <art27@cantab.net>
2021-12-20update docker image to latest go version (#18048)techknowlogick
2021-12-01Use shadowing script for docker (#17846)zeripath
Too many docker users are caught out by the default location for the app.ini file being environment dependent so that when they docker exec into the container the gitea commands do not work properly and require additional -c arguments to correctly pick up the configuration. This PR simply shadows the gitea binary using variants of the FHS compatible script to make the command gitea have the default locations by default. Fix #14468 Reference #17497 Reference #12082 Reference #8941 ... amongst others ... Replace #17501 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-10-26Fix docker rootless build (#17441)wxiaoguang
2021-10-25chmod executables when copying to the docker (#17423)zeripath
Run chmod on the executables and the entrypoint when copying them to the docker in dockerfile. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Norwin <noerw@users.noreply.github.com> Co-authored-by: delvh <dev.lh@web.de>
2021-08-17build with go1.17 (#16707)techknowlogick
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-07-16revert to use alpine 3.13 (#16451)techknowlogick
Co-authored-by: zeripath <art27@cantab.net>
2021-07-09Fix #16387 - rootless Docker user (#16388)Jonathan Hult
Move comment to top of USER instruction
2021-07-08specify user in rootless container numerically (#16361)Tobias Florek
* specify user in rootless container numerically With kubernetes' PodSecurityPolicy set to runAsNonRoot it will not allow starting the container. The error message is ``` Error: container has runAsNonRoot and image has non-numeric user (git), cannot verify user is non-root ``` The `USER` directive has to be numerical for that to work. * mention the name of the uid/gid Co-authored-by: 6543 <6543@obermui.de>
2021-07-07Alpine 3.14 released (#16170)techknowlogick
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
2021-06-06Change default TMPDIR path in rootless containers (#16077)Steven
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
2021-05-21Add curl to rootless docker image (#15908)Steven
Signed-off-by: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-04-29Remove random password in Dockerfiles (#15362)Martin Michaelis
* Remove random password of git user in dockerfile * Disable git user account in rootless dockerfile
2021-02-28go1.16 (#14783)techknowlogick
2021-02-23Add environment-to-ini to docker image (#14762)Kyle D
* Add environment-to-app.ini routine * Call environment-to-ini in docker setup scripts * Automatically convert section vars to lower case to match documentation * Remove git patch instructions * Add env variable documentation to Install Docker
2021-01-20upgrade to alpine 3.13 (#14343)techknowlogick
2020-11-15When building rootless docker image move chown&chmod to build stage (#13578)Lauris BH
* When building rootless docker image move chown&chmod to build stage Fixes #13577 * Fix command newlines * Move chown to COPY command * Seems to be working also without chmod Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-10-31docker: rootless image (#10154)Antoine GIRARD
* docker: rootless image * improve docs + remove check for write perm on custom * add more info on ssh passtrough * Add comment for internal ssh server in container config