Skip to content

Commit 832cc73

Browse files
BST-14399: add additional includes for complete docker proxy (#19)
* update docker proxy definition * upgrade docker to 28
1 parent 3bf347b commit 832cc73

3 files changed

Lines changed: 51 additions & 15 deletions

File tree

scanner.direct.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.boost_setup:
2+
image: "${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:28-cli"
3+
4+
.boost_dind:
5+
services:
6+
- name: "${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:28-dind"
7+
alias: dockerdaemon
8+
# Support for listening on TCP without authentication or explicit
9+
# intent to run without authentication will be removed in the next
10+
# release
11+
command: ["--host", "tcp://0.0.0.0:2375", "--tls=false"]
12+
13+
variables:
14+
CI_DOCKER_PROXY: $CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX
15+
DOCKER_HOST: "tcp://dockerdaemon:2375/"
16+
DOCKER_DRIVER: overlay2
17+
DOCKER_TLS_CERTDIR: ""
18+
19+
.boost_scan:
20+
variables:
21+
CI_DOCKER_PROXY: $CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX

scanner.group.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.boost_setup:
2+
image: "${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:28-cli"
3+
4+
.boost_dind:
5+
services:
6+
- name: "${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:28-dind"
7+
alias: dockerdaemon
8+
# Support for listening on TCP without authentication or explicit
9+
# intent to run without authentication will be removed in the next
10+
# release
11+
command: ["--host", "tcp://0.0.0.0:2375", "--tls=false"]
12+
13+
variables:
14+
CI_DOCKER_PROXY: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX
15+
DOCKER_HOST: "tcp://dockerdaemon:2375/"
16+
DOCKER_DRIVER: overlay2
17+
DOCKER_TLS_CERTDIR: ""
18+
19+
20+
.boost_scan:
21+
variables:
22+
CI_DOCKER_PROXY: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX

scanner.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.boost_setup:
2-
image: "docker:26.1.0"
2+
image: "docker:28-cli"
33

44
before_script:
55
- |
@@ -46,35 +46,28 @@
4646
boost_init_config
4747
boost_init_cli
4848
- |
49-
for i in $(seq 1 30); do
49+
if [ -n "${CI_DOCKER_PROXY:-}" ]; then
50+
echo "${CI_DEPENDENCY_PROXY_PASSWORD}" | docker login "${CI_DEPENDENCY_PROXY_SERVER}" -u "${CI_DEPENDENCY_PROXY_USER}" --password-stdin
51+
fi
52+
- |
53+
for i in $(seq 1 60); do
5054
if ! docker info &> /dev/null; then
5155
echo "Docker not responding yet. Sleeping for 1s..." && sleep 1s
5256
else
5357
echo "Docker ready. Continuing build..."
5458
break
5559
fi
5660
done
57-
- |
58-
if [ "${BOOST_DOCKER_PROXY:-}" == "group" ]; then
59-
export CI_DOCKER_PROXY="${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}"
60-
elif [ "${BOOST_DOCKER_PROXY:-}" == "direct" ]; then
61-
export CI_DOCKER_PROXY="${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}"
62-
fi
63-
64-
if [ -n "${CI_DOCKER_PROXY:-}" ]; then
65-
echo "${CI_DEPENDENCY_PROXY_PASSWORD}" | docker login "${CI_DEPENDENCY_PROXY_SERVER}" -u "${CI_DEPENDENCY_PROXY_USER}" --password-stdin
66-
fi
6761
6862
6963
.boost_dind:
7064
services:
71-
- name: "docker:26.1.0-dind"
65+
- name: "docker:28-dind"
7266
alias: dockerdaemon
7367
# Support for listening on TCP without authentication or explicit
7468
# intent to run without authentication will be removed in the next
7569
# release
7670
command: ["--host", "tcp://0.0.0.0:2375", "--tls=false"]
77-
7871
variables:
7972
DOCKER_HOST: "tcp://dockerdaemon:2375/"
8073
DOCKER_DRIVER: overlay2
@@ -89,9 +82,9 @@
8982

9083
.boost_scan:
9184
extends:
85+
- .boost_rules
9286
- .boost_dind
9387
- .boost_setup
94-
- .boost_rules
9588
script:
9689
- ${BOOST_EXE} scan ${BOOST_SCAN_MODE} ${BOOST_CLI_ARGUMENTS:-}
9790
variables:

0 commit comments

Comments
 (0)