summaryrefslogtreecommitdiffstats
path: root/docker
Commit message (Collapse)AuthorAgeFilesLines
* Fix #8453 by making openssh listen on SSH_LISTEN_PORT not SSH_PORT (#8477)zeripath2019-10-122-2/+3
|
* Make AllowedUsers configurable in sshd_config (#8094)jpellegrini2019-09-052-3/+1
| | | | | | | | docker/root/usr/bin/entrypoint already allows for the specification of USER, USER_UID, USER_GID. But since AllowedUsers is hardcoded in sshd_config, one cannot log in as a user different ftom git. This change substitutes ${USER} for git in the sshd_config template. Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>
* Support SSH_LISTEN_PORT env var in docker app.ini template (#7829)leigh capili2019-08-242-0/+2
| | | Signed-off-by: leigh capili <leigh@null.net>
* drone/docker: prepare multi-arch release + provide arm64 image (#7571)Antoine GIRARD2019-07-241-0/+19
| | | | | | | | | | | | * drone/docker: prepare multi-arch release * Add docker-linux-arm64 pipeline * add arm 64 build to manifest * tag dry-run + indent * Fix notify dependency
* Implement the ability to change the ssh port to match what is in the gitea ↵Christopher Thomas2019-07-062-1/+8
| | | | | | | | | config (#7286) * - rearrange the templates to make it more logical because now ssh_config is a template - implemented the updating of the port to the same as the port sent to the gitea config * change the filename back
* [docker] Add LFS_START_SERVER option to control git-lfs support (#7281)Marat Radchenko2019-06-242-0/+2
|
* Repository avatars (#6986)Sergey Dryabzhinsky2019-05-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Repository avatars - first variant of code from old work for gogs - add migration 87 - add new option in app.ini - add en-US locale string - add new class in repository.less * Add changed index.css, remove unused template name * Update en-us doc about configuration options * Add comments to new functions, add new option to docker app.ini * Add comment for lint * Remove variable, not needed * Fix formatting * Update swagger api template * Check if avatar exists * Fix avatar link/path checks * Typo * TEXT column can't have a default value * Fixes: - remove old avatar file on upload - use ID in name of avatar file - users may upload same files - add simple tests * Fix fmt check * Generate PNG instead of "static" GIF * More informative comment * Fix error message * Update avatar upload checks: - add file size check - add new option - update config docs - add new string to en-us locale * Fixes: - use FileHEader field for check file size - add new test - upload big image * Fix formatting * Update comments * Update log message * Removed wrong style - not needed * Use Sync2 to migrate * Update repos list view - bigger avatar - fix html blocks alignment * A little adjust avatar size * Use small icons for explore/repo list * Use new cool avatar preparation func by @lafriks * Missing changes for new function * Remove unused import, move imports * Missed new option definition in app.ini Add file size check in user/profile avatar upload * Use smaller field length for Avatar * Use session to update repo DB data, update DeleteAvatar - use session too * Fix err variable definition * As suggested @lafriks - return as soon as possible, code readability
* [docker] support for custom GITEA_CUSTOM env var (#6608)Jakob Ackermann2019-05-132-6/+10
|
* [docker] drop the docker Makefile from the image (#6507)Jakob Ackermann2019-05-0512-0/+0
|
* Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631)zeripath2019-04-291-2/+1
|
* [docker] let the ssh daemon speak for itself and drop the syslog daemon (#6529)Jakob Ackermann2019-04-164-10/+1
| | | | | | The sshd flag `-e` instructs sshd to output any logs to stderr instead of the syslog. Redirect this output to stdout then. Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* [docker] drop the bits argument when generating an ed25519 key (#6504)Jakob Ackermann2019-04-041-1/+1
| | | | | | | | | From the man page of ssh-keygen:   Ed25519 keys have a fixed length and the -b flag will be ignored. [skip ci] Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* Disable auto-migrate in docker container (#5730)techknowlogick2019-01-171-6/+0
|
* docker: stop modifying file permission before migrating database (#5707)Julian2019-01-121-1/+0
|
* migrate database if app.ini found (#5290)Pierre-Alexis Ciavaldini2019-01-051-0/+15
| | | | | | | | * migrate database if app.ini found * replacing hard-coded user id by env variable * Update per @zeripath's feedback
* Fix bug on modifying sshd username (#5624)Moshi Binyamini2019-01-021-1/+1
| | | Should fix #5623
* add git protocol v2 support via SSH on Docker image (#5520)Lunny Xiao2018-12-111-0/+2
| | | | | | * add git protocol v2 support via SSH on Docker image * remove new layer on dockerfile
* only chown directories during docker setup if necessary. Fix #4425 (#5064)Fabian Braun2018-10-301-1/+4
| | | Signed-off-by: Fabian Braun <fabian-braun@mailbox.org>
* Update build tags for sqlite_unlock_notify (#5144)Mura Li2018-10-231-1/+1
|
* Remove UsePrivilegeSeparation from the Docker sshd_config, see #2876 (#4722)Andrew Phillips2018-08-161-1/+0
| | | Signed-off-by: Andrew Phillips <theasp@gmail.com>
* Add missing path in the Docker app.ini template (#2181)Tao Wang2018-07-031-0/+7
|
* Remove call to update certs (#4296)techknowlogick2018-06-211-2/+0
|
* Add Environment Variables to Docker template (#4012)Fluf2018-05-232-0/+6
| | | | | | | | | | | | * Add disable registration as an environment variable for docker * Add REQUIRE_SIGNIN_VIEW as env var to docker * Add variables to template * Update docker docs
* Allow Gitea to run as different USER in Docker (#3961)techknowlogick2018-05-163-2/+9
| | | | | | | | | | | | * If using a different $USER then rename git user * Chown based on $USER env * Target only one part of passwd * su-exec based on $USER not a hardcoded value
* Update certificates to enable self-signed certs (#3708)Jone Marius Vignes2018-03-251-0/+2
| | | | | | | | | | | | | Why: * We are using self-signed ssl certificates for internal services, which results in failures when gitea tries to communicate through webhooks with these. We would like to enable gitea to be able to use these certificates without having to build custom docker images. How * We add the internal certificates to /usr/local/share/ca-certificates on the host * We read-only mount /usr/local/share/ca-certificates from the host to /usr/local/share/ca-certificates in the container * We do a update-ca-certificates in the alpine container before starting gitea This should have no consequence for users that do not have the need to handle self-signed certificates, as update-ca-certificates should be idempotent.
* Docker multi-stage (#2927)Antoine GIRARD2018-03-121-1/+5
| | | | | | | | | | | | * Setup docker multi-stage and little sugar at it * Make codacy happy ? * Revert back to what the official docker documentation suggest Codacy don't seems to follow https://docs.docker.com/engine/reference/builder/#maintainer-deprecated * Update golang version
* Enable content trust when building image (#2972)Piotr Orzechowski2017-12-031-1/+1
|
* Docker multi-arch base (#1985)Antoine GIRARD2017-11-161-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create docker/manifest/base.yml serve as base for build docker image for most platform (386,amd64,arm,arm64) * Add make task docker-multi-arch-push-manifest To update references of a multi-arch image on docker registry. * Use SED_INPLACE generic sed command * Delete Dockerfile.aarch64 Delete Dockerfile.rpi * Use gitea/gitea-base as base and replace deprecated MAINTAINER by LABEL (https://docs.docker.com/engine/reference/builder/#maintainer-deprecated) * Fix rebase * Use sapk/gitea-base as base * Split makefile for docker * Fix version to v3.6 Could use in later version edge of alpine official library that support multi-arch for armhf. * Remove sapk/gitea-base and use directly new official alpine multi-arch
* Launch Gitea with custom UID/GID for 'git' user (fixes #2286) (#2791)Henrik Bengtsson2017-11-051-0/+11
|
* Fix ordering in app.ini and fix run mode option (#2829)Morlinest2017-11-022-3/+4
|
* Add environment variable support for Docker image (#2201)Tao Wang2017-10-312-2/+39
| | | | | | | | | | * Add `gettext` dependencies as we need `envsubst` command; * Modified s6's gitea setup script, instead of `cp` the template if no `app.ini` exist, it will substitude the envvars and generate the new `app.ini`; * Make `/docker/etc/templates/app.ini` a template contains environment variables; Signed-off-by: Tao Wang <twang2218@gmail.com>
* Use sqlite3 database as default for Docker image (#2182)Tao Wang2017-07-261-1/+1
| | | Signed-off-by: Tao Wang <twang2218@gmail.com>
* Fixing multiple docker issues (#386)Thomas Boerger2016-12-152-2/+1
| | | | | | | | | | | | * Added stupid docker task to makefile * Dropped unknown option PrintLastLog from docker ssh config * OpenSSH should log to docker stdout * Set random pw for docker git user, otherwise it is locked * Stop using templates and public within docker
* Use su-exec instead of gosu, much smallerThomas Boerger2016-11-283-3/+3
|
* Restructured docker buildingThomas Boerger2016-11-2826-300/+134
| | | | | | | | | I have restructured the docker build process entirely, the binary gets built outside of the docker build command, now we are managing all dependencies with real Alpine packages and I have dropped features like socat or the cron daemon. Signed-off-by: Thomas Boerger <tboerger@suse.de>
* Replace GOGS with GITEA in variable namesSandro Santilli2016-11-072-2/+2
| | | | | | | | | | | | Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables as a fallback if the equivalent GITEA_* are not set, warning user about the need for change. Does not change "gogs" to "gitea" in webhook type name Because "gogs" hook type is part of the API (routes) and used in templates... Closes #87
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|
* Replace gogs.io http links with https version (#3386)rugk2016-08-051-1/+1
|
* Update Docker READMEUnknwon2016-07-151-1/+1
|
* Update docker/build.sh script to use glide & make (#3079)Jean-Philippe Roemer2016-05-111-6/+15
| | | | | | | | | | | | | | | | | | | | | * docker: update build script to use glide + make - docker/build.sh will now use glide to fetch dependencies - glide is built from source to keep compatibility with arm (no pre-prebuilt binary for arm) - docker/build.sh will also now use the provided Makefile It will generate an error when trying to get git build has as we do not ship the 88mo .git directory during the build (should not cause any problem as the variable it sets was not set previously) * docker: fix docker arm build - drop gosu version back to 1.7 as gosu binary for armhf is broken - see tianon/gosu#19 * docker: update gosu to 1.9 Signed-off-by: Jean-Philippe Roemer <jp@roemer.im>
* docker: update documentation for container options (#2965)Jean-Philippe Roemer2016-04-121-3/+21
| | | | | - Created a Container options section in `docker/README.md` - Add documentation for SOCAT_LINK - Move CROND documentation to the new section
* #2878 print error of JSON unmarshal and always returns a valid objectUnknwon2016-03-261-0/+2
|
* update README.mdMike2016-02-281-3/+3
| | | minor grammar fix
* Minor fix for #2710Unknwon2016-02-271-1/+1
|
* Update Docker REAMDE.mdJean-Philippe Roemer2016-02-261-1/+1
| | | | | - Remove the known issue about `.dockerignore` being ignored during DockerHub automated build as this has been fixed - Added a note on the fact that we currently do no support building the container on RPi1
* Dockerfile & Dockerfile.pi updatesJean-Philippe Roemer2016-02-251-1/+1
| | | | | | - Upgrade of gosu to v1.7 - Change in docker/build.sh to use `--no-cache` to prevent APKINDEX creation when installing dev dependencies - Manual upgrade of Alpine on Raspberry Pi when building to make sure the environment is the same as the standard Dockerfile
* Minor docs update for #2605Unknwon2016-02-121-1/+7
|
* Add the ability to run crond inside the Docker containerJean-Philippe Roemer2016-02-123-0/+18
| | | | | | | | - Add the crond init script for s6 - Add the RUN_CROND configuration variable to setup crond - Crond will not be run by default (hence the `down` file in the service directory) - `start.sh` check if RUN_CROND = "true" || "1" and remove this file to tell s6 to run the initscript - Resolves #2597
* Merge pull request #2573 from prologic/add-note-wrt-ssh-on-docker#2409Unknwon2016-02-061-0/+2
|\ | | | | Add an important note about mapping the ssh port on the container to the host
| * Add an important note about mapping the ssh port on the container to the hostJames Mills2016-01-191-0/+2
| |