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.

Shell-executor build folder isolation

See original GitHub issue

First of all thanks for this great tool, it’s awesome 😃

I wish there would be a way to let the pipeline run in another isolated directory so that changes done by the pipeline don’t affect the repository itself.

For example the command could look like this:

gitlab-ci-local --dir build

This would then create a directory called build, copy the project’s content into it and run the pipeline in that directory.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
firecowcommented, May 8, 2020

That’s what I thought. I think, we would have to recreate what an actual runner does, and that is to create a folder for each job, when they are run simultaneously. That way the tool could simulate artifacts workflows as well. I’ll have a look tonight.

1reaction
firecowcommented, Feb 16, 2021

4.9.5 contains job isolation via /build/ folders for docker-executor. Are you using shell-executor in your use-case @MoritzBrueckner

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced configuration - GitLab Docs
Absolute path to a directory where build caches are stored in context of selected executor. For example, locally, Docker, or SSH. If the...
Read more >
Building Dotnet with Gitlab CI - dotnetthoughts
A runner is an isolated (virtual) machine that picks up builds through the ... Make sure you have nuget.exe is installed on C:\Nuget...
Read more >
Securing GitLab CI pipelines with Sysbox - Nestybox Blog Site
It allows the GitLab CI jobs to use the shell executor or Docker executor (either the DooD or DinD approaches) without compromising host ......
Read more >
Introduction to GitLab CI/CD pipelines: a complete guide to get ...
The shell executor has a much lower level of isolation, because it runs ... The example above declared 4 jobs ( build-job, unit-test-job, ......
Read more >
How to use GitLab CI to run tests locally? - LambdaTest
Parallel builds: Builds split by GitLab CI/CD are designed for faster ... In the root directory of your repository, you must create a...
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