aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile.rootless
Commit message (Collapse)AuthorAgeFilesLines
* Fix deprecated Dockerfile ENV format (#31450)silverwind2024-06-211-8/+8
| | | | | | | | | | | | | | | See https://docs.docker.com/reference/build-checks/legacy-key-value-format/. Fixes these warnings seen during the docker build: ``` 4 warnings found (use --debug to expand): - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 5) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 9) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 75) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 76) ``` Introduced in: https://github.com/moby/buildkit/pull/4923
* Alpine 3.20 has been released (#31047)techknowlogick2024-05-231-2/+2
|
* bump to use go 1.22 (#29119)techknowlogick2024-02-141-1/+1
|
* bump to use alpine3.19 (#28594)techknowlogick2023-12-231-2/+2
|
* Dockerfile small refactor (#27757)Patryk Krawaczyński2023-10-291-11/+25
| | | | - Size and layer optimization, - Maintaining consistency in definitions (comments, apk etc.),
* bump go to 1.21 (#26608)techknowlogick2023-08-211-1/+1
| | | Co-authored-by: Giteabot <teabot@gitea.io>
* Update to Alpine 3.18 (#24700)Yevhen Pavlov2023-05-141-2/+2
| | | This pull request is for updating the base docker images to build with the latest version of Alpine.
* Hardcode path to docker images (#23955)techknowlogick2023-04-071-2/+2
| | | | | | Fix #23954 This allows for building on platforms that don't have docker hub as the default container registry.
* Add Bash and Zsh completion scripts (#22646)zeripath2023-02-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | 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>
* update to build with go1.20 (#22732)techknowlogick2023-02-031-1/+1
| | | | | | | as title --------- Co-authored-by: Lauris BH <lauris@nix.lv>
* Add dumb-init to rootless docker (#21775)Michael Kriese2022-12-041-1/+2
| | | | Add dumb-init as process reaper to the rootless image to reap defunct git processes.
* Update to Alpine 3.17 (#21904)flynnnnnnnnnn2022-12-021-2/+2
| | | | This pull request is for updating the base docker images to build with the latest version of Alpine.
* Switch to building with go1.19 (#20695)techknowlogick2022-08-071-1/+1
|
* Fix various typos (#20338)luzpaz2022-07-121-1/+1
| | | | | | | * 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>
* alpine 3.16 (#19797)techknowlogick2022-05-251-2/+2
| | | Co-authored-by: 6543 <6543@obermui.de>
* use go1.18 to build gitea (#19099)techknowlogick2022-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Upgrade Alpine from 3.13 to 3.15 (#18050)v1.17.0-devGrzegorz Alibożek2022-01-191-5/+3
| | | | | | | | | | | * 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>
* update docker image to latest go version (#18048)techknowlogick2021-12-201-2/+2
|
* Use shadowing script for docker (#17846)zeripath2021-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | 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>
* Fix docker rootless build (#17441)wxiaoguang2021-10-261-1/+1
|
* chmod executables when copying to the docker (#17423)zeripath2021-10-251-1/+2
| | | | | | | | | 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>
* build with go1.17 (#16707)techknowlogick2021-08-171-1/+1
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* revert to use alpine 3.13 (#16451)techknowlogick2021-07-161-2/+2
| | | Co-authored-by: zeripath <art27@cantab.net>
* Fix #16387 - rootless Docker user (#16388)Jonathan Hult2021-07-091-1/+2
| | | Move comment to top of USER instruction
* specify user in rootless container numerically (#16361)Tobias Florek2021-07-081-1/+1
| | | | | | | | | | | | | * 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>
* Alpine 3.14 released (#16170)techknowlogick2021-07-071-2/+2
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Change default TMPDIR path in rootless containers (#16077)Steven2021-06-061-0/+2
| | | Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
* Add curl to rootless docker image (#15908)Steven2021-05-211-0/+1
| | | | | Signed-off-by: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Remove random password in Dockerfiles (#15362)Martin Michaelis2021-04-291-2/+1
| | | | | * Remove random password of git user in dockerfile * Disable git user account in rootless dockerfile
* go1.16 (#14783)techknowlogick2021-02-281-1/+1
|
* Add environment-to-ini to docker image (#14762)Kyle D2021-02-231-0/+4
| | | | | | | | | | | * 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
* upgrade to alpine 3.13 (#14343)techknowlogick2021-01-201-2/+2
|
* When building rootless docker image move chown&chmod to build stage (#13578)Lauris BH2020-11-151-2/+1
| | | | | | | | | | | | | * 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>
* docker: rootless image (#10154)Antoine GIRARD2020-10-311-0/+68
* 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