question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example does not work

See original GitHub issue

It seems that the following example playbook from the readme cannot be run:

gitlab_runner_registration_token: 'HUzTMgnxk17YV8Rj8ucQ'
gitlab_runner_runners:
  - name: 'Example Docker GitLab Runner'
    executor: docker
    tags:
      - node
      - ruby
      - mysql
    docker_volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "/cache"
    extra_configs:
      runners.docker:
        memory: 512m
        allowed_images: ["ruby:*", "python:*", "php:*"]
      runners.docker.sysctls:
        net.ipv4.ip_forward: "1"

As the docker image is not specified and not defined in the default. Extract from defaults:

# The default Docker image to use. Required when executor is `docker`.
    docker_image: ''

I get the following error from ansible:

The docker-image needs to be entered

Possible fix is to update the example to:

gitlab_runner_registration_token: 'HUzTMgnxk17YV8Rj8ucQ'
gitlab_runner_runners:
  - name: 'Example Docker GitLab Runner'
    executor: docker
    docker_image: 'alpine'
    tags:
      - node
      - ruby
      - mysql
    docker_volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "/cache"
    extra_configs:
      runners.docker:
        memory: 512m
        allowed_images: ["ruby:*", "python:*", "php:*"]
      runners.docker.sysctls:
        net.ipv4.ip_forward: "1"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
riemerscommented, Mar 24, 2020

liked the idea ;p

0reactions
fleazcommented, Mar 25, 2020

Awesome. Thanks for the quick fix 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use does not work in a sentence - Examples - Bab.la
How to use "does not work" in a sentence? · Does it work? · But does it work? · But it does not...
Read more >
How to not run an example using roxygen2? - Stack Overflow
If you use dontrun{} , then the user can call example(myFunction, run. dontrun=TRUE) , whereas if you simply comment out the examples, you...
Read more >
Helmet example does not work · Issue #1412 · nestjs/docs ...
The example supplied in the documentation's Security page to apply Helmet as a global middleware is wrong. If the user wishes to apply...
Read more >
Common Build Problems - Travis CI Docs
Common Build Problems · My tests broke but were working yesterday · My build script is killed without any error · My build...
Read more >
Ray serve example does not work
Hi, I ran the example code from here import ray from ray import serve import requests ray.init(num_cpus=4) client = serve.start() def say_hello(request): ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found