Kazunori Kimura
7140f0342b
Fix unused client removal on restarted container
...
Handle the case where the target does not exist
in the process of deleting unused clients.
Such a situation will not occur in newly launched containers,
but will occur if they are restarted.
During container restarts, container status are preserved.
If the unused database client was deleted in the last run,
grep will not match anything.
It returns non-zero code and the container stops there
because entrypoint sets option `-e`
(exit immediately on non-zero exit code excluding some special cases)
This commit make the uninstall process to handle the case
UNUSED_DB_CLIENTS is empty.
2023-06-02 22:12:29 +09:00
Kazunori Kimura
598a666693
Add -y option on uninstalling unused db client
...
Co-authored-by: Steven Achilles <steven.achilles@googlemail.com>
Co-authored-by: @f-io
2023-05-25 12:44:32 +09:00
Kazunori Kimura
24e2b581fb
Use purge instead to uninstall unused db clients
...
Instead of `remove` that does not remove actual files.
Co-authored-by: @f-io
2023-05-24 20:26:15 +09:00
Kazunori Kimura
b3b700a701
Uninstall unused postgresql-client on startup
...
Unused clients are determinate by checking ~/.postgresqlrc
Uninstall logs like the following will appear in the docker log:
- Uninstalling unused version(s) of client: postgresql-client-12
2023-05-12 06:58:11 +09:00
Kazunori Kimura
260f548c5b
Ship with multiple versions of postgresql-client
...
It is intended to work even in environments without an internet connection.
- Use latest version of pg_isready on checking database connection
- Switch postgresql-client version checking server on startup
- If the server versions do not match exactly, use the latest installed client
and warn on docker log
From postgresql documentation:
https://www.postgresql.org/docs/15/app-pgdump.html#PG-DUMP-NOTES
> Also, it is not guaranteed that pg_dump's output can be loaded
> into a server of an older major version — not even if the dump
> was taken from a server of that version.
To switch client version, generate a file ~/.postgresqlrc with content like:
{server side major version} {server hostname}:{server port} {default database}
See detail on:
https://manpages.ubuntu.com/manpages/bionic/man5/postgresqlrc.5.html
Following messages appear on docker log:
- Detected server version: 140007
- Generating /home/git/.postgresqlrc
2023-05-12 06:58:11 +09:00
kkkkkks0
f408585d8b
fixes sameersbn#2645
2022-10-20 18:58:03 +08:00
Ivan Baranov
8b9ca622f9
Tested support for azure_activedirectory_v2
2022-09-05 21:46:20 +09:00
Kazunori Kimura
844d57dad2
update *:object_store:enabled regardless of the value
...
apply for artifact,packages,terraform_state,lfs,uploads
2022-06-21 08:46:05 +09:00
haroldsamuels87
944a638a28
fixed a typo
...
took me 5 HOURS to find this tiny little typo.
2022-05-12 18:13:55 +04:30
Péter Józsa
82e88ff0ad
create terraform state directory based on new configuration variables during datadir initialization
...
#2501
2022-04-11 12:13:28 +02:00
Péter Józsa
4752be956c
Allow to configure terraform state feature
2022-04-11 12:13:09 +02:00
Steven Achilles
1a091cea44
Merge pull request #2511 from getfloret/master
...
Fix: HealthCheck Script will Fail if the ENV GITLAB_HTTPS set True
2022-03-29 20:45:41 +02:00
AlpsTsui
def7ef5fea
Fix: HealthCheck Script will Fail if the ENV GITLAB_HTTPS set True
2022-03-29 22:22:31 +08:00
Kazunori Kimura
e91d9b5f7c
support GITLAB_ISSUE_CLOSING_PATTERN
2022-03-27 07:28:01 +09:00
Kazunori Kimura
a9b4feb77b
add NGINX_CUSTOM_GITLAB_SERVER_CONFIG
2022-03-04 22:49:52 +09:00
Kazunori Kimura
2448c6aada
add terraform/packages dir to initialize_datadir()
...
Also add them to sanitize_datadir()
Note that the backup will fail if these directories do not exist
with each feature enabled.
2022-01-28 02:12:35 +09:00
Paolo Mainardi
09e76bb2e7
Missing redis db number
2022-01-03 18:28:10 +01:00
Paolo Mainardi
0a24da2cfe
Copy cable.yml template file
2022-01-03 16:54:08 +01:00
Paolo Mainardi
36330f5366
Support actioncable
2022-01-03 16:32:16 +01:00
sue445
82576f27d0
Fixed Pages config not being created when GITLAB_PAGES_ACCESS_CONTROL was disabled
2021-12-09 22:24:30 +01:00
Kazunori Kimura
729a00a3c9
remove runtime/config/gitlabhq/rack_attack.rb
2021-10-09 15:45:11 +09:00
Jonathan Kline
f323481206
Corrected a typo in the artifacts section to allow proper updating and
...
replacement of the AWS_SIGNING_VERSION for artifacts
2021-08-02 16:39:10 -05:00
Akanoa
e2354ed8aa
feat: Add "AWS_SIGNATURE_VERSION" related environment variables
2021-07-30 22:41:31 +00:00
Akanoa
bed4200b02
feat: allow to configure the packages registry from environment variables
2021-07-30 16:32:24 +00:00
sue445
73dae28e31
Pass {{GITLAB_INSTALL_DIR}} to gitlab-pages/config
2021-07-21 09:38:37 +09:00
sue445
50bad15845
Resolved. GitLab Pages doesn't work since GitLab v14.0
...
ref. #2375
As I can see from the error message below, it looks like both
`api-secret-key` and `gitlab-server` (or `internal-gitlab-server` ) are required since GitLab v14.0
```
time="2021-06-28T02:28:34Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
```
https://gitlab.com/gitlab-org/gitlab-pages/-/blob/v1.41.0/internal/source/gitlab/client/client.go#L50-52
2021-07-20 18:38:04 +09:00
Sameer Naik
6ed4aa776c
fixed typo
2021-07-01 19:06:26 +02:00
G.J.R. Timmer
e194e7d8d0
moved default TIMEZONE variable to env-defaults
...
Resolve conversation
2021-07-01 19:06:26 +02:00
Gert-Jan Timmer
9180bed1fe
fix Container TimeZone
...
Fix Container TimeZone
Fix Container TimeZone
2021-07-01 19:06:26 +02:00
Sameer Naik
09b8c1c265
Merge pull request #1884 from taomaree/custom_hooks_dir
...
Add support for GITLAB_SHELL_CUSTOM_HOOKS_DIR
2021-06-23 10:46:02 +05:30
Sameer Naik
6b619f4891
Merge pull request #2311 from sue445/csp_params
...
Add content_security_policy params
2021-06-23 10:45:20 +05:30
Sameer Naik
7b25affe22
Merge pull request #2321 from l00v3/add_prevent_ldap_sign_in
...
Add LDAP_PREVENT_LDAP_SIGN_IN configuration parameter
2021-06-21 10:31:36 +05:30
Rene Gärtner
bb6a889e0b
added OAUTH_AUTO_LINK_USER option
2021-04-30 14:17:28 +02:00
sue445
b820c61f33
Add content_security_policy params
2021-04-18 23:28:28 +09:00
Kazunori Kimura
4ccb8eefb5
Support healthcheck with relative URL
...
traditional one with relative url always returns 404 (unhealthy).
Now we can use ${GITLAB_RELATIVE_URL_ROOT} variable to set healcheck URL
after moving script generation to runtime,
2021-04-08 21:12:19 +09:00
l00v3
9b7536a32e
Add LDAP_PREVENT_LDAP_SIGN_IN configuration parameter
...
Committer: l00v3 <love@localhost.localdomain>
2021-03-12 11:59:03 +01:00
Sameer Naik
adf79a6c11
functions: properly delete the bitbucket auth config when not in use
2021-03-10 13:42:54 +05:30
Bruno Léon
8311b1ee74
Set default value for BITBUCKET_URL
...
If this value is not set importing repo fails when connecting to
bitbucket.
2021-02-23 08:19:52 +01:00
麦当苗儿
83202cdf6a
added SSL_PROTOCOLS option to change protocols of the nginx ( #2304 )
2021-02-16 08:21:06 +01:00
solidnerd
ca34ea0486
fix: GITLAB_RELATIVE_URL_ROOT installation method
...
During the last remove of the node_modules folder it wasn’t possbile to recompile assets on the start of the container. This is neccesarry for the GITLAB_RELATIVE_URL_ROOT to work correctly.
Signed-off-by: solidnerd <niclas@mietz.io>
2020-12-26 14:40:51 +01:00
sue445
0946fef04c
Add GITLAB_PAGES_ARTIFACTS_SERVER_URL
2020-12-02 22:57:46 +01:00
John Regan
b45f86cd9b
Allow setting sshd MaxStartups with env variable ( fixes #969 ) ( #1111 )
2020-08-24 20:53:24 +02:00
Constantin Wildförster
740677fe34
fixes #2200
2020-08-12 07:51:08 +02:00
Phi Tran
80212eff1a
Fix gitlab pages deamon error when enabling access control ( #2177 )
2020-08-02 17:06:45 +02:00
Sebastián Ramírez
b3eacbdd9d
🐛 Fix running generate_registry_certificates by default and returning to directory
2020-05-26 20:57:04 +02:00
Sebastián Ramírez
998c491877
✨ Implement function generate_registry_certificates
2020-05-26 20:57:04 +02:00
solidnerd
1c3c1aa7d0
fix: revert #1443 of mapping uid and gid
...
This is only a revert only of #1443 to get back in functional working.
Closes #2144
2020-05-25 06:56:20 +02:00
Tien Tran
b80e2673fe
Fix accidental replacement if no backup is configured
...
If none of AWS or GCS backups are configured, sed command would accidentially replace the second "upload:" occurrence until the end of file.
2020-05-21 11:14:42 +02:00
solidnerd
4b4cbb8f98
fix: add GITLAB_HOME env for gitlab.yml substitution
...
This adds a missing environment variable that was required in
https://github.com/sameersbn/docker-gitlab/blob/master/assets/runtime/config/gitlabhq/gitlab.yml#L1100
Closes #2145
2020-05-17 14:54:03 +02:00
Sameer Naik
25cb2e7466
gitlab: upgrade to 12.10.4
2020-05-16 08:04:45 +02:00