Comments (2)
The actual gitlab runner is registered using gitlab-runner register --docker-mac-address AA:BB:CC:DD:EE:FF ...
, which writes the mac address in the config.toml
of the gitlab runner much like described in your second reference. Unfortunately, gitlab-runner exec
ignores this configuration entirely (but it doesn't when its being called by GitLab).
You solution works, however, this requires me to adjust the .gitlab-ci.yaml
everytime I want to test locally and this, in fact, is the reason I quit using gitlab-runner exec
because with that you can't pass CI-specific environment variables, say, CI_JOB_TOKEN
or CI_PIPELINE_SOURCE
, which also leads to me having to rename these variables for the testing time.
from gitlab-ci-local.
We can add support for this, but my question is how do you then, plan to run this via the actual gitlab runnner ?
Maybe you can give the following a try?
#.gitlab-ci.yml
job:
image: bash
script:
- ifconfig eth0 hw ether "AA:BB:CC:DD:EE:FF"
- ip a show eth0
Addtional info:
Until https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27863 is implemented, you might want to go with the hacky workaround as recommended here https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2344#note_95853536
from gitlab-ci-local.
Related Issues (20)
- avoid setting CI_PROJECT_ID HOT 2
- not respecting rules HOT 2
- golang package are not cp to the .gitlab-ci-local/cache directory HOT 7
- Implement --shell-executor-no-image HOT 1
- Gcl use my username as host in includes HOT 10
- Challenges with Local File Inclusion from Other Projects in Latest Version HOT 4
- 4.48.0 regression test failure HOT 9
- Implement include[].component syntax
- Checking the absence of a variable with `rules: -if: (! $VARIABLE)` works in `gitlab-ci-local` but is rejected as invalid YAML by GitLab! HOT 1
- missing schema.json for 4.48.1 release
- dotenv variables are not loaded for `service` definitions
- support `image:pull_policy` to allow forcing 'always' behavior HOT 4
- Get the variables from gitlab project variables HOT 2
- Custom build directories with GIT_CLONE_PATH HOT 3
- Unable to source global variables HOT 1
- Add support for predefined runner instance class HOT 1
- Job fails when using quay.io/condaforge/linux-anvil-cos7-x86_64 image HOT 8
- Improve the documentation HOT 1
- Rules problem with double quotes HOT 2
- Unable to run with --network host HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-ci-local.