Logo
Explore Help
Register Sign In
Nemcio/Gogs
1
0
Fork 0
You've already forked Gogs
mirror of https://github.com/gogs/gogs.git synced 2026-03-06 12:11:00 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
db4bf20df33f008fa16fb1c813cc7ee14673d038
Gogs/docker/s6/openssh/run

8 lines
124 B
Plaintext
Raw Normal View History

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
2015-10-02 10:56:36 +01:00
#!/bin/sh
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
2015-10-02 21:54:55 +01:00
if test -f ./setup; then
source ./setup
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
2015-10-02 10:56:36 +01:00
fi
Use app/docker folder for SSH Configureation
2015-10-02 11:29:11 +01:00
exec gosu root /usr/sbin/sshd -D -f /app/gogs/docker/sshd_config
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 108ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API