-
Is OneDev server running directly on your Mac, or via docker container? And is the build job running with server docker executor, or remote docker executor?
-
OneDev is running in a docker container. I do not know what you mean by the second question, sorry. The buildx is set by Docker Desktop, the build job itself is via .onedev-buildspec.yml in the project itself and built when I press the button (sorry for the noobish description!)
-
I do not know what you mean by the second question
I mean if you are installing OneDev agent and running jobs with agent. Seems that you only uses server, which is totally fine.
I did a test at my side, and it works. What I am doing:
- Make sure to use correct server url in
Administration / System Settings. This url should be accessible from jobs running within a docker container. For testing purpose, I specified it ashttp://<mac ip address>:6610 Tagsproperty of build image step should be specified using same host as server url above. I specified it as<mac ip address>:6610/test/myrepofor my testing- Since I am testing with http protocol, docker should be configured to allow insecure connections in two places as explained here: https://docs.onedev.io/tutorials/cicd/insecure-docker-registry. For docker daemon part, it can be configured via docker desktop.
- Make sure to use correct server url in
-
Also for build image step, credential to the built-in docker registry should be specified in more settings. Also make sure to use same host as server url there.
-
Previous Value Current Value Open
Closed
-
Feel free to reopen if there is more info.
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
I am trying to set up a CI/CD pipeline for my SvelteKit app, but I fail all the time (or at least the 29 attempts).
On localhost:8015 I have a registry running, it's working, returns a JSON when I call it via bash.
Getting the following error:
My buildpec.yml:
I tried it with the IP address, tunnelled via CapRover with HTTPS, host.docker.internal, and localhost.
In Docker Desktop (running a Mac) I have set the insecure registries:
Basically, what I want to do (and currently failing miserably...):
So, if anyone was kind enough to help, that would be much appreciated!