Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
slapos
Commits
e8c32032
Commit
e8c32032
authored
Mar 01, 2023
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab: version up and improve socket connecting
Shorten the socket path Add a promise to check socket
parent
d2e4dc61
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
software/gitlab/buildout.hash.cfg
software/gitlab/buildout.hash.cfg
+1
-1
software/gitlab/instance-gitlab.cfg.in
software/gitlab/instance-gitlab.cfg.in
+13
-6
software/gitlab/software.cfg
software/gitlab/software.cfg
+2
-2
No files found.
software/gitlab/buildout.hash.cfg
View file @
e8c32032
...
@@ -54,7 +54,7 @@ md5sum = 0f1ec4077dab586cc003ae13f689eda2
...
@@ -54,7 +54,7 @@ md5sum = 0f1ec4077dab586cc003ae13f689eda2
[instance-gitlab.cfg.in]
[instance-gitlab.cfg.in]
_update_hash_filename_ = instance-gitlab.cfg.in
_update_hash_filename_ = instance-gitlab.cfg.in
md5sum = 0
b023c7efd027f65b14e752484be2ec7
md5sum = 0
445e54ee7ce1f65ec79801e128c80d4
[instance-gitlab-export.cfg.in]
[instance-gitlab-export.cfg.in]
_update_hash_filename_ = instance-gitlab-export.cfg.in
_update_hash_filename_ = instance-gitlab-export.cfg.in
...
...
software/gitlab/instance-gitlab.cfg.in
View file @
e8c32032
...
@@ -37,6 +37,7 @@ parts =
...
@@ -37,6 +37,7 @@ parts =
logrotate-entry-cron
logrotate-entry-cron
on-reinstantiate
on-reinstantiate
gitaly-socket-listening-promise
# std stuff for slapos instance
# std stuff for slapos instance
eggs-directory = {{ eggs_directory }}
eggs-directory = {{ eggs_directory }}
...
@@ -174,12 +175,18 @@ internal = ${:sockets}/internal
...
@@ -174,12 +175,18 @@ internal = ${:sockets}/internal
log = ${directory:log}/gitaly
log = ${directory:log}/gitaly
[gitaly]
[gitaly]
socket = ${
gitaly-dir:sockets
}/gitaly.socket
socket = ${
directory:var
}/gitaly.socket
log = ${gitaly-dir:log}
log = ${gitaly-dir:log}
location = {{ gitaly_location }}
location = {{ gitaly_location }}
pid = ${directory:run}/gitaly.pid
pid = ${directory:run}/gitaly.pid
internal_socket = ${gitaly-dir:internal}
internal_socket = ${gitaly-dir:internal}
[gitaly-socket-listening-promise]
<= monitor-promise-base
promise = check_socket_listening
name = gitaly_socket_listening_promise.py
config-pathname = ${gitaly:socket}
# 2. configuration files
# 2. configuration files
[etc-template]
[etc-template]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
@@ -535,9 +542,9 @@ srv = ${directory:srv}/gitlab-workhorse
...
@@ -535,9 +542,9 @@ srv = ${directory:srv}/gitlab-workhorse
log = ${directory:log}/workhorse
log = ${directory:log}/workhorse
[gitlab-workhorse]
[gitlab-workhorse]
srv = ${
gitlab-workhorse-dir
:srv}
srv = ${
directory
:srv}
socket = ${
gitlab-workhorse
:srv}/gitlab-workhorse.socket
socket = ${
directory
:srv}/gitlab-workhorse.socket
log = ${
gitlab-workhorse-dir
:log}/gitlab-workhorse.log
log = ${
directory
:log}/gitlab-workhorse.log
secret = ${secrets:secrets}/gitlab_workhorse_secret
secret = ${secrets:secrets}/gitlab_workhorse_secret
[service-gitlab-workhorse]
[service-gitlab-workhorse]
...
@@ -588,7 +595,7 @@ log = ${directory:log}/unicorn
...
@@ -588,7 +595,7 @@ log = ${directory:log}/unicorn
[unicorn]
[unicorn]
srv = ${unicorn-dir:srv}
srv = ${unicorn-dir:srv}
log = ${unicorn-dir:log}
log = ${unicorn-dir:log}
socket = ${:srv}/unicorn.socket
socket = ${
directory
:srv}/unicorn.socket
[service-unicorn]
[service-unicorn]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
...
@@ -637,7 +644,7 @@ command-line = ${:rake} gitlab:gitlab_shell:check
...
@@ -637,7 +644,7 @@ command-line = ${:rake} gitlab:gitlab_shell:check
[logrotate-entry-unicorn]
[logrotate-entry-unicorn]
<= logrotate-entry-base
<= logrotate-entry-base
log = ${unicorn:log}/*.log
log = ${unicorn:log}/*.log
name = unicorn
name = unicorn
[logrotate-entry-gitlab]
[logrotate-entry-gitlab]
<= logrotate-entry-base
<= logrotate-entry-base
...
...
software/gitlab/software.cfg
View file @
e8c32032
...
@@ -135,7 +135,7 @@ git-executable = ${git:location}/bin/git
...
@@ -135,7 +135,7 @@ git-executable = ${git:location}/bin/git
<= git-repository
<= git-repository
repository = https://lab.nexedi.com/nexedi/gitlab-ce.git
repository = https://lab.nexedi.com/nexedi/gitlab-ce.git
# 9.5.10 + NXD patches:
# 9.5.10 + NXD patches:
revision = v
9.5.10-9-g69b0ffae00bf
revision = v
8.16.0.pre-16286-g9d66cd7b834
location = ${buildout:parts-directory}/gitlab
location = ${buildout:parts-directory}/gitlab
[gitlab-shell-repository]
[gitlab-shell-repository]
...
@@ -251,7 +251,7 @@ path = ${gitlab-workhorse-repository:location}
...
@@ -251,7 +251,7 @@ path = ${gitlab-workhorse-repository:location}
md5sum = 2988c944d58c4a08880498c4981cc7b7
md5sum = 2988c944d58c4a08880498c4981cc7b7
configure-command = :
configure-command = :
make-binary =
make-binary =
make-targets =
make-targets =
. ${gowork:env.sh} && make install PREFIX=${gowork:directory}
. ${gowork:env.sh} && make install PREFIX=${gowork:directory}
[gitlab-backup]
[gitlab-backup]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment