forked from sardinasystems/fleeting-plugin-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sardinasystems:main' into allow-env-auth
- Loading branch information
Showing
5 changed files
with
40 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
[Unit] | ||
Description=GitLab Runner | ||
ConditionFileNotEmpty=/etc/gitlab-runner/config.toml | ||
ConditionFileIsExecutable=/opt/bin/fleeting-plugin-openstack | ||
After=network-online.target docker.service gitlab-runner-plugin-prepare.service | ||
After=network-online.target docker.service | ||
Wants=network-online.target | ||
Requires=docker.service gitlab-runner-plugin-prepare.service | ||
Requires=docker.service | ||
|
||
[Service] | ||
Environment=IMAGE=$RUNNER_IMAGE | ||
EnvironmentFile=-/etc/sysconfig/gitlab-runner | ||
|
||
#ExecStartPre=/usr/bin/docker pull $IMAGE | ||
ExecStartPre=-/usr/bin/docker rm --force gitlab-runner | ||
ExecStart=/usr/bin/docker run --name gitlab-runner --pull always --network=host --ipc=host \ | ||
ExecStartPre=-/usr/bin/docker volume create plugins | ||
ExecStartPre=/usr/bin/docker run --rm --name gitlab-runner-plugin-install --pull always --network=host --ipc=host \ | ||
-v /etc/gitlab-runner:/etc/gitlab-runner \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v /opt/bin:/usr/local/bin \ | ||
-v plugins:/root/.config/fleeting/plugins \ | ||
$IMAGE fleeting install | ||
ExecStart=/usr/bin/docker run --name gitlab-runner --network=host --ipc=host \ | ||
-v /etc/gitlab-runner:/etc/gitlab-runner \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v plugins:/root/.config/fleeting/plugins \ | ||
$IMAGE | ||
|
||
ExecStop=/usr/bin/docker stop gitlab-runner | ||
#ExecStopPost=/usr/bin/docker rm gitlab-runner | ||
|
||
StartLimitInterval=5 | ||
StartLimitBurst=10 | ||
|
||
Restart=always | ||
RestartSec=120 | ||
|
||
#StandardOutput=journal+console | ||
#StandardError=inherit | ||
# StandardOutput=journal+console | ||
# StandardError=inherit | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters