| Commit message (Collapse) | Author | Age |
|
|
| |
[skip ci]
|
| |
|
| |
|
|
|
|
|
| |
* Remove outdated files
* Fix warnings
|
| |
|
|
|
| |
This reverts commit f3b05961aae82fa3e19c47f03c78974cf793fda3.
|
|
|
|
|
| |
* Fix the bug of using root account to create /data directory
* Fix the bug that sshkey cannot be added in the container and remove unnecessary chown.
|
|
|
|
|
|
|
|
| |
When running gogs after the first time, if the image has changed (update
rebuild), the /app/gogs directory will have changed owner back to
root:root, but /data will likely not be since the data directories are
likely to be persistent.
Checking /app/gogs separately fixes this.
|
| |
|
|
|
| |
The chown command in the setup file of Gogs is supposed to be executed just once. As soon as the app.ini file exists, this step should be skipped. However, the test was checking if a directory with the name app.ini exists instead of a file. Therefore, the chown command was executed on each boot.
|
| |
|
|
|
|
| |
This reverts commit 068e6ce2c995445f0ce1c10ee11816600b12a5fd.
|
| |
|
|
|
|
|
|
| |
* Prevent circular links (symlinks) from being created:
* /data/gogs/log/log -> /data/gogs/log
* /data/gogs/data/data -> /data/gogs/data
* /data/git/git -> /data/git
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
|
| |
- 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)
|
|
|
|
|
|
|
| |
- 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)
|
| |
|
|
|
|
|
| |
- resolve #1765
- create link to old git repository path: `/home/git/gogs-repository`
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
| |
- Fix s6 fifodir error on container restart
- Add .tags* to .gitignore (Atom auto ctags generation)
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
- Removed unnecessary variables
- Fixed symbolic links creation
- Fixed enter point
- Less intermediate containers
|
| |
|
|
- 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
|