142 Commits (forgejo)

Author SHA1 Message Date
Jean-Philippe Roemer 3deddabfd8 Add `set -x` & `set -e` to docker/build.sh for better debugging 9 years ago
Jean-Philippe Roemer 0cbf56855a Update s6 path following package update 9 years ago
Jean-Philippe Roemer 14a8a46bec Add logging when socat link creation is deactivated 9 years ago
Jean-Philippe Roemer 7679aa1a21 Fix typo & cleanup start.sh code 9 years ago
Jean-Philippe Roemer 9a8aeef478 Add syslog & fix `/data/git` rights & SOCAT_LINK env var
- Resolve #1893
- Add syslogd to output sshd log on stdout (via `docker logs`)
- Enforce directory rights on `/data/git`, `/data/gogs` & `/data/ssh`
- Add `SOCAT_LINK` environment variable to prevent the creation of scout links when they are not needed (see #1815)
9 years ago
Jean-Philippe Roemer f7c7837fc8 Docker socat link: default port fix
- Remove port 80 & 443 unused by the container
- Add port 3000 used by gogs application
9 years ago
Jean-Philippe Roemer 02289479ef Docker `socat` link creation
- `start.sh` will now verify that the port is not already used by another service
- Resolve #1807
- Log when a service is created, or could not be created
- Keep track of which port is already used, including goes & sshd port
9 years ago
Limian Wang b854d3ba40 fix typo in README for Docker 9 years ago
Jean-Philippe Roemer 9acf02ad7f Fix bug introduced in #1759 preventing ssh server to launch
- ssh/setup: test directive now check if a file exist in key path instead of a folder
- ssh/setup script was hanging waiting for an input about rewriting the key
  as the test case was returning true, when it should have been false
  (check if file is a folder instead of a file)
9 years ago
Jean-Philippe Roemer 533c6a8e08 Edit comment to make it clear that we are talking about container version 9 years ago
Jean-Philippe Roemer bfed40eec4 Docker repository path backward compatibility fix:
- resolve #1765
- create link to old git repository path: `/home/git/gogs-repository`
9 years ago
Jean-Philippe Roemer 9cba6ff84b Volumed data setup changed to allow #1759
- Volumed subfolder now created up in the ENTRYPOINT script, this way
  they are created before S6 even starts making VOLUME.
- The subfolder will be created during VOLUME creation too as ENTRYPOINT
  script will be run before /bin/true
- SSH Keys will now be created on a single key basis not replying on the
  existence of /data/ssh folder
9 years ago
Jean-Philippe Roemer fc427432ed Docker Container Restart Fix
- Fix s6 fifodir error on container restart
- Add .tags* to .gitignore (Atom auto ctags generation)
9 years ago
Jean-Philippe Roemer 5981f1edcd Remove fixed issue 9 years ago
Jean-Philippe Roemer ad5e0b833c Docker 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
9 years ago
无闻 e5310cdbc1 Merge pull request #1731 from ogarcia/develop
Several bugfixes in Docker build
9 years ago
Unknwon e34d0063c3 Update Docker README for #1708 9 years ago
Óscar García Amor 3e7d8db7a2 Several bugfixes in Docker build
- Removed unnecessary variables
- Fixed symbolic links creation
- Fixed enter point
- Less intermediate containers
9 years ago
Jean-Philippe Roemer 3cad8d9492 Use app/docker folder for SSH Configureation 9 years ago
Jean-Philippe Roemer e63e0b3105 New 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
9 years ago
Unknwon 42a38dfca3 #1665 improve docs 9 years ago
Unknwon 91220a2501 #1665 improve Docker docs 9 years ago
Unknwon 86d3c5cbb3 update Docker info 9 years ago
Unknwon 232c22208c remove rsync 9 years ago
Unknwon a35911486f fix error in docker doc 9 years ago
Unknwon 90528b2610 fix docker docs style 9 years ago
Unknwon bd1d7d1509 Able to set SSH port when install, update Docker docs 9 years ago
Unknwon 81b8427438 new UI on admin/monitor 9 years ago
Unknwon c20ae8edc5 update Docker README 9 years ago
codeskyblue 4095ef2820 add pam for docker 9 years ago
Unknwon 398bb772d8 update docker README 9 years ago
codeskyblue 9371fbe71a add docker ssh support 9 years ago
codeskyblue 0510f712e7 pass test in my foreign machine test 9 years ago
codeskyblue 54b8172a24 some modify, I need to move my workenv to foreign county, network in china is so slow. 9 years ago
Tiago Pires a5f9077e5a Update docker image.
Shrink docker image.
Update from fig (deprecated) to docker-compose.
Update README.md.

Signed-off-by: Tiago Pires <tandrepires@gmail.com>
9 years ago
Alban Garrigue 7d109573cb openssh-client provide ssh-keygen. GOGS needs that binary to add a ssh key to a user 9 years ago
Alban Garrigue 81fcc0db0c $DIRECTORY variable is never set 9 years ago
euank f059866a21 Set user.name & user.email in Dockerfile
The previous setting would cause all repo creations to fail, as
described in issue #328.
The previous commit also resolves this issue, but it seems saner to
create the user in the Dockerfile than at runtime.
10 years ago
morpheyesh 995a805a31 spellcheck 10 years ago
Tristan Storch 863a4d5bc4 Use variables, when the're there
Why not use the environment variables, when they are there...
10 years ago
Tristan Storch 7df0794e14 docker dev block update
The dev Dockerfile now works without superfluous go get calls.
At this point the -u option is really not what we want.
10 years ago
Tristan Storch d1a2228f1c Docker mix and match setup
Rewrite of the docker setup. Now uses fig to manage containers and container
linkage. The base is a block based mix and match, which will give you the
possibility to easily test all configurations.
10 years ago