ci1 is the "master" where I ran the install script of CI_package_check, and I configured the lxd cluster, i also open the port 8443 which is used by other server on this cluster
(
to create a bridge interface when we use the cluster feature:
lxc network create lxdbr0 --target ciX.kayou.io # do this for each server
lxc network create lxdbr0 ipv4.address=192.168.X.1/24
lxc network set lxdbr0 ipv4.nat=true
lxc network attach-profile lxdbr0 default
)
ci2 is the "slave", where I just join the cluster.
There is an issue with the current package_check code. The curl command to validate if we have access to the app fails when the container is on another server because the ip of containers in ci2 is not accessible on ci1 (ofc). I think this problem can be solved in several ways:
Don't use clustering, and use only local workers
Do the curl with ssh
Do the curl on the public ip of the servers (ci1 or ci2) and redirect the trafic to the containers
Linked with: https://github.com/YunoHost/CI_package_check/pull/38 & https://github.com/YunoHost/package_check/pull/113
Example here with 2 of my scaleway: https://ci1.kayou.io https://ci2.kayou.io
ci1 is the "master" where I ran the install script of CI_package_check, and I configured the lxd cluster, i also open the port 8443 which is used by other server on this cluster ( to create a bridge interface when we use the cluster feature:
) ci2 is the "slave", where I just join the cluster.
You can see the result here: https://ci1.kayou.io/ci/
If anyone want access on those server, ping me, I'd be happy to give them to you.
Right now, there is 4 workers (2 per server), when I do a
lxc list
i have:There is an issue with the current package_check code. Thecurl
command to validate if we have access to the app fails when the container is on another server because the ip of containers in ci2 is not accessible on ci1 (ofc). I think this problem can be solved in several ways:Don't use clustering, and use only local workersDo the curl with sshDo the curl on the public ip of the servers (ci1 or ci2) and redirect the trafic to the containersMake the container having a public ip...Fixed by: https://github.com/YunoHost/package_check/pull/113/commits/9f6cc8dceb4096040ec581e972c8db878c111286