Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab-runner
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
certo
gitlab-runner
Commits
835cb691
Commit
835cb691
authored
Mar 24, 2022
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added systemd unit file and gitlab-runner config
parent
17f71e9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
Makefile
Makefile
+33
-1
No files found.
Makefile
View file @
835cb691
all
:
all
:
gitlab-runner-config gitlab-runner-service
mkdir
-p
../go/go/src/gitlab.com/gitlab-runner
mkdir
-p
../go/gocache
tar
xf gitlab-runner-v13.1.0.tar.gz
-C
../go/go/src/gitlab.com/gitlab-runner
...
...
@@ -7,3 +7,35 @@ all:
cd
../go/go/src/gitlab.com/gitlab-runner/gitlab-runner
&&
install
-D
-m
755 out/binaries/gitlab-runner /usr/bin/gitlab-runner
rm
-rf
/usr/local/share/.cache
rm
-rf
../go/gocache
install
-m755
-d
/etc/gitlab-runner
@
echo
"
$$
GITLAB_RUNNER_CONFIG"
>
/etc/gitlab-runner/config.toml
@
echo
"
$$
GITLAB_RUNNER_SERVICE"
>
/lib/systemd/system/gitlab-runner.service
systemctl
enable
gitlab-runner.service
gitlab-runner-config
:
define
GITLAB_RUNNER_CONFIG
concurrent
=
1
check_interval
=
0
[session_server]
session_timeout
=
1800
endef
export
GITLAB_RUNNER_CONFIG
gitlab-runner-service
:
define
GITLAB_RUNNER_SERVICE
[Unit]
Description
=
GitLab Runner
After
=
syslog.target network.target
[Service]
StartLimitInterval
=
5
StartLimitBurst
=
10
ExecStart
=
/usr/bin/gitlab-runner run
--working-directory
/var/lib/gitlab-runner
--config
/etc/gitlab-runner/config.toml
--service
gitlab-runner
--syslog
--user
root
Restart
=
always
RestartSec
=
120
[Install]
WantedBy
=
multi-user.target
endef
export
GITLAB_RUNNER_SERVICE
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