mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
added GITLAB_LFS_ENABLED configuration parameter
This commit is contained in:
parent
3cd493bb58
commit
2eafe4318a
@ -9,6 +9,7 @@ This file only reflects the changes that are made in this image. Please refer to
|
||||
- added `GITLAB_SHARED_DIR` configuration parameter
|
||||
- added `GITLAB_LFS_OBJECTS_DIR` configuration parameter
|
||||
- added `GITLAB_PROJECTS_BUILDS` configuration parameter
|
||||
- added `GITLAB_LFS_ENABLED` configuration parameter
|
||||
|
||||
**8.1.4**
|
||||
- gitlab: upgrade to CE v8.1.4
|
||||
|
||||
@ -769,6 +769,7 @@ Below is the complete list of available options that can be used to customize yo
|
||||
- **GITLAB_PROJECTS_BUILDS**: Set if *builds* feature should be enabled by default for new projects. Defaults is `true`.
|
||||
- **GITLAB_WEBHOOK_TIMEOUT**: Sets the timeout for webhooks. Defaults to `10` seconds.
|
||||
- **GITLAB_TIMEOUT**: Sets the timeout for git commands. Defaults to `10` seconds.
|
||||
- **GITLAB_LFS_ENABLED**: Enable/Disable Git LFS support. Defaults to `true`.
|
||||
- **GITLAB_NOTIFY_ON_BROKEN_BUILDS**: Enable or disable broken build notification emails. Defaults to `true`
|
||||
- **GITLAB_NOTIFY_PUSHER**: Add pusher to recipients list of broken build notification emails. Defaults to `false`
|
||||
- **GITLAB_REPOS_DIR**: The git repositories folder in the container. Defaults to `/home/git/data/repositories`
|
||||
|
||||
@ -126,7 +126,7 @@ production: &base
|
||||
|
||||
## Git LFS
|
||||
lfs:
|
||||
enabled: false
|
||||
enabled: {{GITLAB_LFS_ENABLED}}
|
||||
# The location where LFS objects are stored (default: shared/lfs-objects).
|
||||
storage_path: {{GITLAB_LFS_OBJECTS_DIR}}
|
||||
|
||||
|
||||
@ -62,6 +62,9 @@ GITLAB_RELATIVE_URL_ROOT=${GITLAB_RELATIVE_URL_ROOT:-}
|
||||
GITLAB_WEBHOOK_TIMEOUT=${GITLAB_WEBHOOK_TIMEOUT:-10}
|
||||
GITLAB_TIMEOUT=${GITLAB_TIMEOUT:-10}
|
||||
|
||||
## LFS
|
||||
GITLAB_LFS_ENABLED=${GITLAB_LFS_ENABLED:-true}
|
||||
|
||||
GITLAB_SECRETS_DB_KEY_BASE=${GITLAB_SECRETS_DB_KEY_BASE:-}
|
||||
GITLAB_NOTIFY_ON_BROKEN_BUILDS=${GITLAB_NOTIFY_ON_BROKEN_BUILDS:-true}
|
||||
GITLAB_NOTIFY_PUSHER=${GITLAB_NOTIFY_PUSHER:-false}
|
||||
|
||||
@ -592,6 +592,7 @@ gitlab_configure_ci() {
|
||||
|
||||
gitlab_configure_lfs() {
|
||||
echo "Configuring gitlab::lfs..."
|
||||
exec_as_git sed -i 's/{{GITLAB_LFS_ENABLED}}/'"${GITLAB_LFS_ENABLED}"'/' ${GITLAB_INSTALL_DIR}/config/gitlab.yml
|
||||
exec_as_git sed -i 's,{{GITLAB_LFS_OBJECTS_DIR}},'"${GITLAB_LFS_OBJECTS_DIR}"',g' ${GITLAB_INSTALL_DIR}/config/gitlab.yml
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user