Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
gitlab-runner-docker
Commits
a0dcaeae
Commit
a0dcaeae
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Personal registry.
parent
5ed66087
No related branches found
No related tags found
No related merge requests found
Pipeline
#546
canceled
4 years ago
Stage: test
Stage: build
Stage: deploy
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+10
-7
10 additions, 7 deletions
.gitlab-ci.yml
crond/Dockerfile
+1
-1
1 addition, 1 deletion
crond/Dockerfile
deploy
+1
-0
1 addition, 0 deletions
deploy
docker-compose.yml
+3
-2
3 additions, 2 deletions
docker-compose.yml
with
15 additions
and
10 deletions
.gitlab-ci.yml
+
10
−
7
View file @
a0dcaeae
---
---
include
:
include
:
-
project
:
shore/ci-templates
file
:
templates/pre-commit.yml
-
project
:
shore/ci-templates
-
project
:
shore/ci-templates
file
:
templates/docker.yml
file
:
templates/docker.yml
build-host01
:
stages
:
extends
:
.compose-build
-
test
tags
:
[
host01.shore.co.il
]
-
build
-
deploy
build
-ns4
:
build
:
extends
:
.compose-build
extends
:
.compose-build
tags
:
[
ns4.shore.co.il
]
tags
:
[
ns4.shore.co.il
]
build-kodi
:
push
:
extends
:
.compose-
build
extends
:
.compose-
push
tags
:
[
kodi
.shore.co.il
]
tags
:
[
ns4
.shore.co.il
]
This diff is collapsed.
Click to expand it.
crond/Dockerfile
+
1
−
1
View file @
a0dcaeae
FROM
docker:19.03
as
docker
FROM
docker:19.03
as
docker
# hadolint ignore=DL3006
# hadolint ignore=DL3006
FROM
adarnimrod
/cron
as
supersonic
FROM
registry.shore.co.il
/cron
as
supersonic
COPY
--from=docker /usr/local/bin/docker /usr/local/bin/
COPY
--from=docker /usr/local/bin/docker /usr/local/bin/
COPY
--chown=root:root crontab /crontab
COPY
--chown=root:root crontab /crontab
# hadolint ignore=DL3002
# hadolint ignore=DL3002
...
...
This diff is collapsed.
Click to expand it.
deploy
+
1
−
0
View file @
a0dcaeae
...
@@ -11,6 +11,7 @@ _deploy() {
...
@@ -11,6 +11,7 @@ _deploy() {
echo
"Deploying to
$1
"
>
&2
echo
"Deploying to
$1
"
>
&2
export
DOCKER_HOST
=
"ssh://
$1
"
export
DOCKER_HOST
=
"ssh://
$1
"
export
RUNNER_NAME
=
"
$1
"
export
RUNNER_NAME
=
"
$1
"
until
docker-compose pull
--quiet
;
do
true
;
done
until
docker-compose up
--detach
--remove-orphans
;
do
true
;
done
until
docker-compose up
--detach
--remove-orphans
;
do
true
;
done
# shellcheck disable=SC2034
# shellcheck disable=SC2034
for
i
in
$(
seq
12
)
for
i
in
$(
seq
12
)
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
3
−
2
View file @
a0dcaeae
...
@@ -6,13 +6,13 @@ services:
...
@@ -6,13 +6,13 @@ services:
context
:
runner/
context
:
runner/
environment
:
environment
:
CI_SERVER_URL
:
"
${CI_SERVER_URL:-https://git.shore.co.il}"
CI_SERVER_URL
:
"
${CI_SERVER_URL:-https://git.shore.co.il}"
DOCKER_IMAGE
:
docker
:19.03
DOCKER_IMAGE
:
registry.shore.co.il/ci-images:
docker
DOCKER_NETWORK_MODE
:
&network
gitlab-runner
DOCKER_NETWORK_MODE
:
&network
gitlab-runner
REGISTRATION_TOKEN
:
"
${REGISTRATION_TOKEN}"
REGISTRATION_TOKEN
:
"
${REGISTRATION_TOKEN}"
RUNNER_NAME
:
"
${RUNNER_NAME}"
RUNNER_NAME
:
"
${RUNNER_NAME}"
REGISTER_RUN_UNTAGGED
:
"
${RUN_UNTAGGED:-true}"
REGISTER_RUN_UNTAGGED
:
"
${RUN_UNTAGGED:-true}"
RUNNER_TAG_LIST
:
"
${RUNNER_NAME}"
RUNNER_TAG_LIST
:
"
${RUNNER_NAME}"
image
:
adarnimrod
/gitlab-runner
image
:
registry.shore.co.il
/gitlab-runner
restart
:
always
restart
:
always
volumes
:
volumes
:
-
"
${BUILDS:-builds}:/builds"
-
"
${BUILDS:-builds}:/builds"
...
@@ -21,6 +21,7 @@ services:
...
@@ -21,6 +21,7 @@ services:
crond
:
crond
:
build
:
build
:
context
:
crond/
context
:
crond/
image
:
registry.shore.co.il/gitlab-runner-cron
volumes
:
volumes
:
-
/run/docker.sock:/run/docker.sock
-
/run/docker.sock:/run/docker.sock
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment