aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
AgeCommit message (Expand)Author
2019-05-05[docker] drop the docker Makefile from the image (#6507)Jakob Ackermann
2019-03-08Use golang 1.12 to build in dockerfile (#6285)techknowlogick
2019-02-05 Upgrade alpine to 3.9 (#5909)techknowlogick
2018-11-28Upgrade alpine to 3.8 (#5423)techknowlogick
2018-11-01Update golang version in Dockerfile (#5246)Stanislav
2018-10-23Update build tags for sqlite_unlock_notify (#5144)Mura Li
2018-07-04Fix docker build (#4358)•••/app/gitea/gitea is the file, and /usr/local/bin is where the symlink will be locatedtechknowlogick
2018-07-03Add missing path in the Docker app.ini template (#2181)Tao Wang
2018-03-12Docker multi-stage (#2927)•••* 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 Antoine GIRARD
2017-12-10Update alpine to 3.7 (#3121)Antoine GIRARD
2017-11-16Docker multi-arch base (#1985)•••* 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 Antoine GIRARD
2017-10-31Add environment variable support for Docker image (#2201)•••* 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>Tao Wang
2017-10-05Add maintainer label for docker file (#2658)•••* Add maintainer label for docker file Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * update Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> Bo-Yi Wu
2017-09-13Dockerfile: Updated alpine image to 3.6. (#2486)•••Signed-off-by: Jonathan Davies <jpds@protonmail.com>Jon Davies
2017-08-13Use /dev/urandom to create random password (#2298)•••* Make sure generated password is random Use /dev/urandom to get a 32 char password * Make sure generated password is random Use /dev/urandom to generate 32 char password * Make sure generated password is random Pontus Leitzler
2017-06-30Revert "Reduce number of layer" (#2086)•••This reverts commit 789188f13c93e47b8a758c379bd463f7c2792f13.Lunny Xiao
2017-06-30Reduce number of layer (#2078)•••Somes layer are created and aren't usefull, so I compress this :)Dryusdan
2017-05-09Realy don't cache apk index•••Actualy the "-U --no-cache" effectivly is treated as --no-cache was never specified: / # apk -U --no-cache add sed fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz (1/1) Installing sed (4.2.2-r0) Executing busybox-1.25.1-r0.trigger OK: 4 MiB in 12 packages / # ls -la /var/cache/apk/ total 1004 drwxr-xr-x 1 root root 70 May 8 11:08 . drwxr-xr-x 1 root root 29 Mar 3 11:20 .. -rw-r--r-- 1 root root 732807 May 5 07:11 APKINDEX.c51f8f92.tar.gz -rw-r--r-- 1 root root 293014 May 1 12:37 APKINDEX.d09172fd.tar.gz So removing the "-U" fix this behavior. Daniel Wendler (@cassandra)
2017-05-05Upgrade alpine to v3.5 in Dockerfile (#1633)Peter Dave Hello
2017-04-29Refactor Dockerfile•••1. Use `apk -U --no-cache add` instead of `apk update` + `apk add` + manually cache clean up. 2. Separate package installation and user, group setup, the combination to reduce a docker image layer didn't bring benefits here, only makes Dockerfiles more complex. Peter Dave Hello
2016-12-15Fixing multiple docker issues (#386)•••* 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 Thomas Boerger
2016-12-01Copy gitea binary to docker from correct path (#325)•••Signed-off-by: Thomas Boerger <tboerger@suse.de>Thomas Boerger
2016-11-28Added -S flag to addgroup command within DockerfilesThomas Boerger
2016-11-28Replaced edge with 3.4 for the alpine base imageThomas Boerger
2016-11-28Replaced shadow with addgroup and adduserThomas Boerger
2016-11-28Use su-exec instead of gosu, much smallerThomas Boerger
2016-11-28Restructured docker building•••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> Thomas Boerger
2016-11-07Replace GOGS with GITEA in variable names•••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 Sandro Santilli
2016-07-15docker: Support timezones (#3262)Andrey Arapov
2016-05-11Update docker/build.sh script to use glide & make (#3079)•••* 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> Jean-Philippe Roemer
2016-02-25Dockerfile & Dockerfile.pi updates•••- 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 Jean-Philippe Roemer
2016-02-19update alpine package dependencies•••- s6 is in main in 3.3, so we no longer need to mangle the repos file - official image is periodically updated, so it's not preferred to do upgrades downstream (usually harmless, but inelegant) - apk-tools in 3.3 supports --no-cache to avoid leaving the APKINDEX files in the image Muh Muhten
2016-01-28Update Dockerfile to update alpine to v3.3 & fix virtual package and reposito...•••- Dockerfile now uses alpine:3.3 as base - Dockerfile.rpi now uses v3.3/community repository without pinning - Go package is no longer fetched using repository pinning - Fixes problem while using repository pinning & virtual package at the same time Jean-Philippe Roemer
2016-01-25Update Dockerfile & build script and add /etc/nsswitch.conf:•••- Add nsswitch.conf to configure LibC Name Service inside the container - Change my email in the Dockerfile - Update build script to install software as a `build-deps` virtual package so that adding a package to it will be automatically removed at the end of the build script Jean-Philippe Roemer
2015-11-16Update s6 path following package updateJean-Philippe Roemer
2015-10-10Update gosu, this fixes #1756Alvaro Aleman
2015-10-02Docker Container: Init 1 & Initialisation•••- Now using a setup script before starting the app. The separation of the run script and the setup script will make service initialisation a little bit clearer - Now calling start.sh script as ENTRYPOINT and S6 as CMD. This way when running the container with just a shell script, the start.sh script will be launched before, making debugging easier - Added note about `.dockerignore` ignored during Docker Hub Automated Build Jean-Philippe Roemer
2015-10-02Several bugfixes in Docker build•••- Removed unnecessary variables - Fixed symbolic links creation - Fixed enter point - Less intermediate containers Óscar García Amor
2015-10-02Add bash to the image so bash git hooks can be usedJean-Philippe Roemer
2015-10-02Use app/docker folder for SSH ConfigureationJean-Philippe Roemer
2015-10-02New approach to Gogs Docker Container•••- VOLUME for ‘/data’ - Usage of S6 as PID 1 Process - Usage of ‘socat’ so linked container (like databases) are binded to localhost - OpenSSH, Socat Link and Gogs are supervised using S6 - Size of container reduced to ~75Mo Jean-Philippe Roemer
2015-09-06remove rsyncUnknwon
2015-08-25#1521 reduce Docker image sizeUnknwon
2015-08-17add pam for dockercodeskyblue
2015-08-17add docker ssh supportcodeskyblue
2015-08-17add missing filecodeskyblue
2015-08-17some modify, I need to move my workenv to foreign county, network in china is...codeskyblue
2015-03-10Adding a project-level Dockerfile & docker-compose scriptJoshua Delsman