-
Are you able to clone this project with submodules from your terminal?
git clone --recurse-submodules https://onedev/YourMainProject -
In our tests in the terminal of the OneDev container, the command worked with http://onedev:6610.
The reverse proxy container (Caddy) has its own network in which the OneDev container is also located. We then tried to bring the Docker container of the Job Executor into the Docker network of the Caddy Reverse Proxy with the setting “--network=” under the “Run Options”.
The following error message then appeared: docker: Error response from daemon: Container cannot be connected to network endpoints: Docker-0, caddy_network.
Do you have any idea how the Docker containers of the steps can be set to a specific network?
Thank you.
-
Never tried with that approach. You may run a docker container manually from terminal on same machine running OneDev job executor to see if it can access your Caddy network.
-
The command to clone the submodules works if we run a Docker container in the same network as the OneDev container.
Unfortunately, the existing network option in the Job Executor, which creates a new network, does not help in this case.
It would be nice to have an option in the job executors to select whether the executor should create its own random network or connect to an existing network from the start.
-
OneDev runs each build in a separate network for isolation purpose (job might be accessing service with same name etc.). Normally containers inside newly created network should be able to access hosts outside the network. If you describe the reproduding steps in more detail, I will check to see if there are workarounds.
-
-
-
Previous Value Current Value Open
Closed
-
Reopen if there is more info
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Dear all,
we are facing the issue that submodules cannot be cloned within our pipeline. Our Onedev is behind an reverse proxy (Caddy). Access Token is used for authentification.
Do you have any idea how to fix the problem?
Thank you!