Skip to content

Commit

Permalink
Merge pull request #3 from illuin-tech/upgrade-12
Browse files Browse the repository at this point in the history
Upgrade 12
  • Loading branch information
pdesgarets authored Aug 27, 2019
2 parents 73ec2ab + f8d7bd3 commit b25caea
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 23 deletions.
8 changes: 7 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

**12.2.0**
- bumped to runner 12.2.0

**11.9.0-1**
- Configure session server for web terminal

**11.9.0**
- bumped to runner 11.9.0

Expand Down Expand Up @@ -40,7 +46,7 @@

**1.9.3**
- gitlab-ci-multi-runner: upgrade to 1.9.3
- added support of RUNNER_OUTPUT_LIMIT
- added support of RUNNER_OUTPUT_LIMIT

**1.9.0-1**
- fix restart of container
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM sameersbn/ubuntu:14.04.20180124
MAINTAINER [email protected]

ENV GITLAB_RUNNER_VERSION=11.9.0 \
ENV GITLAB_RUNNER_VERSION=12.2.0 \
GITLAB_RUNNER_USER=gitlab_runner \
GITLAB_RUNNER_HOME_DIR="/home/gitlab_runner"
ENV GITLAB_RUNNER_DATA_DIR="${GITLAB_RUNNER_HOME_DIR}/data"
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/gitlab-ci-multi-runner/status "Docker Repository on Quay.io")](https://quay.io/repository/sameersbn/gitlab-ci-multi-runner)

# digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
# digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0

- [Introduction](#introduction)
- [Contributing](#contributing)
Expand Down Expand Up @@ -51,7 +51,7 @@ Automated builds of the image are available on [Dockerhub](https://hub.docker.co
> **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/gitlab-ci-multi-runner)
```bash
docker pull digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
docker pull digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0
```

Alternatively you can build the image yourself.
Expand All @@ -71,7 +71,7 @@ docker run --name gitlab-ci-multi-runner -d --restart=always \
--volume /srv/docker/gitlab-runner:/home/gitlab_ci_multi_runner/data \
--env='CI_SERVER_URL=http://git.example.com/ci' --env='RUNNER_TOKEN=xxxxxxxxx' \
--env='RUNNER_DESCRIPTION=myrunner' --env='RUNNER_EXECUTOR=shell' \
digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0
```

*Alternatively, you can use the sample [docker-compose.yml](docker-compose.yml) file to start the container using [Docker Compose](https://docs.docker.com/compose/)*
Expand Down Expand Up @@ -110,7 +110,7 @@ docker run --name gitlab-ci-multi-runner -d --restart=always \
--env='CI_SERVER_URL=http://git.example.com/ci' --env='RUNNER_TOKEN=xxxxxxxxx' \
--env='RUNNER_DESCRIPTION=myrunner' --env='RUNNER_EXECUTOR=docker' \
--env='RUNNER_DOCKER_IMAGE=docker:latest' --env='RUNNER_DOCKER_MODE=socket'
digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0
```

Start the docker runner in dind mode :
Expand All @@ -121,19 +121,19 @@ docker run --name gitlab-ci-multi-runner -d --restart=always \
--env='CI_SERVER_URL=http://git.example.com/ci' --env='RUNNER_TOKEN=xxxxxxxxx' \
--env='RUNNER_DESCRIPTION=myrunner' --env='RUNNER_EXECUTOR=docker' \
--env='RUNNER_DOCKER_IMAGE=docker:latest' --env='RUNNER_DOCKER_MODE=dind'
digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0
```

If you want to share volumes between your containers and the runner in socket mode, use the `RUNNER_DOCKER_ADDITIONAL_VOLUME` variable to share `/builds:/builds`.

You can increase the log maximum size by setting the RUNNER_OUTPUT_LIMIT variable (in kb)
You can increase the log maximum size by setting the RUNNER_OUTPUT_LIMIT variable (in kb)


See https://docs.gitlab.com/ce/ci/docker/using_docker_build.html for more info.

## Concurrent jobs
You an setup your runner to start multiple job in parallel by setting the environment variable `RUNNER_CONCURRENT` to the number of jobs you want to run concurrently.


## Command-line arguments

Expand All @@ -142,7 +142,7 @@ You can customize the launch command by specifying arguments to `gitlab-ci-multi
```bash
docker run --name gitlab-ci-multi-runner -it --rm \
--volume /srv/docker/gitlab-runner:/home/gitlab_ci_multi_runner/data \
digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0 --help
digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0 --help
```

## Persistence
Expand Down Expand Up @@ -190,7 +190,7 @@ To upgrade to newer releases:
1. Download the updated Docker image:

```bash
docker pull digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
docker pull digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0
```

2. Stop the currently running image:
Expand All @@ -210,7 +210,7 @@ To upgrade to newer releases:
```bash
docker run -name gitlab-ci-multi-runner -d \
[OPTIONS] \
digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
digitallumberjack/docker-gitlab-ci-multi-runner:v12.2.0
```

## Shell Access
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v11.9.0
v12.2.0
34 changes: 24 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
GitlabCIMultiRunner:
image: digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0
volumes:
- /srv/docker/gitlab-runner:/home/gitlab_ci_multi_runner/data
environment:
- CI_SERVER_URL=
- RUNNER_TOKEN=
- RUNNER_DESCRIPTION=
- RUNNER_EXECUTOR=shell
restart: always
version: '2'

services:
runner_docker:
restart: always
image: local-grunner
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/gitlab_ci_multi_runner/data
ports:
- 8000-8100:9000
environment:
- CI_SERVER_URL=https://mydomaingitlab.com/ci
- RUNNER_TOKEN=
- RUNNER_DESCRIPTION="Docker runner"
- RUNNER_EXECUTOR=docker
- RUNNER_DOCKER_IMAGE=docker:latest
- RUNNER_DOCKER_MODE=socket
- RUNNER_AUTOUNREGISTER=true
- RUNNER_TAG_LIST=localtest
- REGISTER_RUN_UNTAGGED=false
- RUNNER_ADVERTISE_SESSION_ADDRESS=mydomain.com
- RUNNER_INTERNAL_SESSION_PORT=9000

0 comments on commit b25caea

Please sign in to comment.