SSH remotes, docker extra hosts, unique pipe_ids #18
macmacal
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I've made a few changes to Jaypore CI over the past weeks.
Do check out the latest version / docs at jayporeci.in and let me know if something is still broken for you and requires a change. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I came across the JayporeCI (JCI) during extensive research of possible CI/CD plugins for self-hosted Gitea instance. The idea of running pipelines on local (or remote) machine's docker engine with minimal overhead of configuration bought me.
However, in my case, JCI didn't work well right outside the box:
/etc/hosts
files. To apply these custom aliases to docker containers, a new parameter (docker run --add-host
/extra_hosts: {}
) must be passed.user@server:/repo/path.git
tohttps://server/repo/path.git
.pipe_id
variable based on "name=" parameter in/proc/self/cgroup
was always empty). Probably a fallback to an other method for obtaining unique tag (e.g. unix timestamps) would fix this inconvenience.All these problems motivated me to do something with them. After a long ~weekend (with an unexpected problem with official docker image
arjoonn/jci
(the docker wasn't installed)) I proudly present my fresh setup of JCI + Gitea:--add-host
and-e REQUESTS_CA_BUNDLE
to thehook()
function:pipe_id
for job containers in Ubuntu 22.04 (and in Arch too) I have added a small fallback to unix timestamp, when the length of the obtained name is equal to 0. IMHO it looks good enough.Now, I'm a happy user of JCI and I'm ready to start doing some refactor to my current code base:

That was an adventure! I hope someone will find these things useful 😉 .
Also, as you can see, these 3 main modifications are already separated into three branches - if there is will and desire I can start creating PRs for them.
Beta Was this translation helpful? Give feedback.
All reactions