Skip to content

ENT-14361: Added a docker-host role to setup-ci-host.sh - #2395

Open
larsewi wants to merge 3 commits into
cfengine:masterfrom
larsewi:container-packages-build-host
Open

ENT-14361: Added a docker-host role to setup-ci-host.sh#2395
larsewi wants to merge 3 commits into
cfengine:masterfrom
larsewi:container-packages-build-host

Conversation

@larsewi

@larsewi larsewi commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
  • Fixed empty $my_dir outside the centos-7 branch
  • Moved the pinned SSH host keys into ci/known_hosts
  • Added a docker-host role to setup-ci-host.sh

larsewi added 3 commits August 4, 2026 16:18
be57fc6 computed $my_dir at the top of the script, and 1f25dbc relied
on it for the linux-install-protobuf.sh and linux-install-rust.sh calls.
dbc1efb then moved the computation into the centos-7 branch so hosts
without realpath would not abort under set -e, which left $my_dir empty
for those two calls everywhere else.

Resolved it once at the top again, calling realpath only when available
so those hosts still get through. The fail-fast is gone with it: a
relative dirname is enough to source a neighbouring script.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
fix-buildhost.sh had the cache host key inline, and the containerized
build (ENT-14361) needs the same keys.

setup-ci-host.sh now seeds them too: jobs check their sources out over
ssh, and cfengine-build-host-setup.cf, which writes that file today, is
never reached from there.

Also pins all three key types for the cache host rather than only
ed25519, since which one is used is the client's choice.

Ticket: ENT-14330
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Hosts for the build-in-container job need Docker with BuildKit, which no
build host has today.

Ticket: ENT-14361
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant