actions: runner [container].docker_host variations
* automount * "" or "-" * unix:///var/run/docker.sock * tcp://127.0.0.1:2375
This commit is contained in:
parent
801c760a4e
commit
33749f5a5e
16 changed files with 158 additions and 0 deletions
|
@ -101,6 +101,21 @@ function actions_runner_version() {
|
|||
echo $runner_version
|
||||
}
|
||||
|
||||
function prepare_dockerd() {
|
||||
mkdir -p /etc/systemd/system/docker.service.d
|
||||
cat >/etc/systemd/system/docker.service.d/override.conf <<'EOF'
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/sbin/dockerd -H unix:///var/run/docker.sock -H tcp://127.0.0.1:2375 --containerd=/run/containerd/containerd.sock $DOCKER_OPTS
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
if ! systemctl restart docker.service; then
|
||||
journalctl --no-pager --unit docker.service
|
||||
return 1
|
||||
fi
|
||||
netstat -lntp | grep 127.0.0.1:2375
|
||||
}
|
||||
|
||||
function test_actions() {
|
||||
local versions="${1:-$RELEASE_NUMBERS}"
|
||||
|
||||
|
@ -118,6 +133,13 @@ function test_actions() {
|
|||
run actions_verify_feature logs-compression
|
||||
fi
|
||||
|
||||
run actions_verify_example with-docker-tcp
|
||||
if dpkg --compare-versions $runner_version gt 5.0.2; then
|
||||
for example in with-docker-host with-docker-socket without-docker-socket; do
|
||||
run actions_verify_example $example
|
||||
done
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions $version ge 7.0 && dpkg --compare-versions $runner_version gt 3.3.0; then
|
||||
for example in artifacts-v4; do
|
||||
run actions_verify_example $example
|
||||
|
|
Loading…
Add table
Reference in a new issue