build-python3-image-root-user ○ success
⏱
Duration: 1m 8s
⏳
Queued: 2s
📁
Stage: docker-image
🖥
Runner: linux-aws-1
Average Duration
30s
This job: 1m 8s
Failure Rate
0.7%
last 30 days
External Links
▶
Job Execution Phases
💡 Tip: Click on any phase bar to jump to that section in the log below
▶
Job Analysis
Job Status: Passed
Status: Job passed successfully
▶
Full Job Log
422 lines
Match - of 0
1
11:09:35
Running with gitlab-runner 18.9.0 (07e534ba)
2
11:09:35
on gitlab-runner-linux-1-746bdd58fd-kxshj wRxjPbsJX, system ID: r_ldbmQ551Swzx
3
11:09:35
feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL:true, FF_SCRIPT_SECTIONS:true, FF_USE_ADVANCED_POD_SPEC_CONFIGURATION:true, FF_PRINT_POD_EVENTS:true, FF_USE_DUMB_INIT_WITH_KUBERNETES_EXECUTOR:true, FF_LOG_IMAGES_CONFIGURED_FOR_JOB:true, FF_CLEAN_UP_FAILED_CACHE_EXTRACT:true, FF_GIT_URLS_WITHOUT_TOKENS:true, FF_WAIT_FOR_POD_TO_BE_REACHABLE:true, FF_USE_FLEETING_ACQUIRE_HEARTBEATS:true, FF_USE_JOB_ROUTER:true
4
11:09:35
Resolving secrets
5
11:09:35
section_start:1778065775:prepare_executor
6
11:09:35
+Preparing the "kubernetes" executor
7
11:09:35
"CPURequest" overwritten with "2"
8
11:09:35
"MemoryRequest" overwritten with "4G"
9
11:09:35
Using Kubernetes namespace: gitlab-runner
10
11:09:35
Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac ...
11
11:09:35
Using attach strategy to execute scripts...
12
11:09:35
Using effective pull policy of [Always] for container build
13
11:09:35
Using effective pull policy of [Always] for container helper
14
11:09:35
Using effective pull policy of [Always] for container init-permissions
15
11:09:35
section_end:1778065775:prepare_executor
16
11:09:35
+section_start:1778065775:prepare_script
17
11:09:35
+Preparing environment
18
11:09:35
Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19
11:09:35
WARNING: Advanced Pod Spec configuration enabled, merging the provided PodSpec to the generated one. This is a beta feature and is subject to change. Feedback is collected in this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29659 ...
20
11:09:36
Subscribing to Kubernetes Pod events...
21
11:09:36
Type Reason Message
22
11:09:36
Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-1-br8ndl5c to ip-10-0-26-238.eu-central-1.compute.internal
23
11:09:37
Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
24
11:09:37
Normal Created Created container: init-permissions
25
11:09:38
Normal Started Started container init-permissions
26
11:10:07
Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac"
27
11:10:08
Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac" in 1.272s (1.272s including waiting). Image size: 49989654 bytes.
28
11:10:08
Normal Created Created container: build
29
11:10:09
Normal Started Started container build
30
11:10:09
Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
31
11:10:09
Normal Created Created container: helper
32
11:10:09
Normal Started Started container helper
33
11:10:12
Running on runner-wrxjpbsjx-project-621-concurrent-1-br8ndl5c via gitlab-runner-linux-1-746bdd58fd-kxshj...
34
11:10:12
35
11:10:12
section_end:1778065812:prepare_script
36
11:10:12
+section_start:1778065812:get_sources
37
11:10:12
+Getting source from Git repository
38
11:10:13
Gitaly correlation ID: 01KQYFN6DWDYSA5WQCBT7H0ZS8
39
11:10:13
Fetching changes with git depth set to 1...
40
11:10:13
Initialized empty Git repository in /build/internal/gitlab-templates/.git/
41
11:10:13
Created fresh repository.
42
11:10:13
Checking out 19a8ce14 as detached HEAD (ref is master)...
43
11:10:13
44
11:10:13
Skipping Git submodules setup
45
11:10:13
46
11:10:13
section_end:1778065813:get_sources
47
11:10:13
+section_start:1778065813:step_script
48
11:10:13
+Executing "step_script" stage of the job script
49
11:10:14
section_start:1778065813:section_pre_build_script_0[hide_duration=true,collapsed=true]
$ function cleanup {
50
11:10:14
rv=$?
51
11:10:14
if [ $rv -ne 0 ]; then
52
11:10:14
echo ""
53
11:10:14
echo " Failure Cause Analysis might help, please open this link:"
54
11:10:14
echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
55
11:10:14
echo ""
56
11:10:14
fi
57
11:10:14
echo ""
58
11:10:14
echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
59
11:10:14
echo ""
60
11:10:14
echo ""
61
11:10:14
echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=${EPOCHSECONDS}000"
62
11:10:14
echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=${EPOCHSECONDS}000"
63
11:10:14
echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
64
11:10:14
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
65
11:10:14
echo ""
66
11:10:14
exit $rv
67
11:10:14
}
68
11:10:14
trap cleanup EXIT
69
11:10:14
echo "INFO: This is the CI job pre_build_script"
70
11:10:14
echo "INFO: It's defined in the backend/infra/aws repo."
71
11:10:14
echo "INFO: These additional Scandit variables are available to you:"
72
11:10:14
echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
73
11:10:14
echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
74
11:10:14
echo " SC_K8S_KYVERNO_PATCHES: |"
75
11:10:14
echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
76
11:10:14
echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
77
11:10:14
if command -v numfmt >/dev/null 2>&1; then
78
11:10:14
echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
79
11:10:14
else
80
11:10:14
echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
81
11:10:14
fi
82
11:10:14
__start_time=${EPOCHSECONDS}
83
11:10:14
echo ""
84
11:10:14
echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=now"
85
11:10:14
echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=now"
86
11:10:14
echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
87
11:10:14
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
88
11:10:14
echo ""
89
11:10:14
echo "Setting up credentials for Gitlab Python registries"
90
11:10:14
mkdir -p ~
91
11:10:14
echo "machine gitlab.scandit.com" > ~/.netrc
92
11:10:14
echo "login gitlab-ci-token" >> ~/.netrc
93
11:10:14
echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
94
11:10:14
chmod 600 ~/.netrc
95
11:10:14
if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
96
11:10:14
git config --global --add safe.directory $CI_PROJECT_DIR
97
11:10:14
fi
98
11:10:14
# Sonarqube server is running on the same cluster. Use internal address
99
11:10:14
export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
100
11:10:14
section_end:1778065813:section_pre_build_script_0
101
11:10:14
INFO: This is the CI job pre_build_script
102
11:10:14
INFO: It's defined in the backend/infra/aws repo.
103
11:10:14
INFO: These additional Scandit variables are available to you:
104
11:10:14
SC_K8S_NODE_NAME: ip-10-0-26-238.eu-central-1.compute.internal
105
11:10:14
SC_K8S_IMAGE_ID:
106
11:10:14
SC_K8S_KYVERNO_PATCHES: |
107
11:10:14
108
11:10:14
cpu (r/l): 2/4
109
11:10:14
memory (r/l): 4000000000/17179869184
110
11:10:14
111
11:10:14
Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-26-238.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-br8ndl5c&var-resolution=15&from=1778065813000&to=now
112
11:10:14
Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-26-238.eu-central-1.compute.internal&var-resolution=15s&from=1778065813000&to=now
113
11:10:14
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484698&sortOrder=Ascending&from=1778065813000&to=now
114
11:10:14
date: invalid date '-7 days'
115
11:10:14
date: invalid date '+7 days'
116
11:10:14
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-python3-image-root-user&project=internal/gitlab-templates
117
11:10:14
118
11:10:14
Setting up credentials for Gitlab Python registries
119
11:10:14
$ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
120
11:10:14
$ mv /root/.netrc /kaniko/.netrc
121
11:10:14
section_start:1778065813:section_script_step_2[hide_duration=true,collapsed=true]
$ function copy_files() {
122
11:10:14
local src="$1"
123
11:10:14
local trg="$2"
124
11:10:14
for f in $src; do
125
11:10:14
t="$trg/`dirname $f`"
126
11:10:14
mkdir -p $t || true
127
11:10:14
echo "Copy $f"
128
11:10:14
cp -pr $f $trg/$f
129
11:10:14
done
130
11:10:14
}
131
11:10:14
function recursive_hash() {
132
11:10:14
local dir="$1"
133
11:10:14
find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
134
11:10:14
}
135
11:10:14
function remote_docker_digest() {
136
11:10:14
local images="$1"
137
11:10:14
echo $images | xargs -n 1 crane digest
138
11:10:14
}
139
11:10:14
function remote_image_exists() {
140
11:10:14
local image="$1"
141
11:10:14
crane manifest $image > /dev/null 2>&1
142
11:10:14
}
143
11:10:14
function remote_images_are_identical() {
144
11:10:14
local imageA="$1"
145
11:10:14
local imageB="$2"
146
11:10:14
if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
147
11:10:14
return 0
148
11:10:14
else
149
11:10:14
return 1
150
11:10:14
fi
151
11:10:14
}
152
11:10:14
function copy_image() {
153
11:10:14
local image="$1"
154
11:10:14
local remotes="$2"
155
11:10:14
local backup_ext="$3"
156
11:10:14
echo "$image"
157
11:10:14
local source_digest=$(remote_docker_digest $image)
158
11:10:14
local target_digest
159
11:10:14
for registry in $remotes; do
160
11:10:14
if target_digest=$(remote_docker_digest $registry); then
161
11:10:14
if [ "$target_digest" != "$source_digest" ]; then
162
11:10:14
echo "image outdated, overwriting with newest version"
163
11:10:14
crane copy $image $registry
164
11:10:14
crane copy $image ${registry}${backup_ext}
165
11:10:14
fi
166
11:10:14
else
167
11:10:14
echo "image does not exist, writing newest version"
168
11:10:14
crane copy $image $registry
169
11:10:14
crane copy $image ${registry}${backup_ext}
170
11:10:14
fi
171
11:10:14
done
172
11:10:14
}
173
11:10:14
section_end:1778065813:section_script_step_2
174
11:10:14
section_start:1778065813:section_script_step_3[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_SUBDIR" != "" ]; then
175
11:10:14
echo "Entering subpath $CONTAINER_SUBDIR"
176
11:10:14
cd $CONTAINER_SUBDIR
177
11:10:14
fi
178
11:10:14
section_end:1778065813:section_script_step_3
179
11:10:14
$ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
180
11:10:14
Copy Dockerfile.python
181
11:10:14
Copy requirements.txt
182
11:10:14
$ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
183
11:10:14
$ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
184
11:10:14
section_start:1778065813:section_script_step_7[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
185
11:10:14
final_image_name=${CONTAINER_IMAGE_URL}
186
11:10:14
else
187
11:10:14
final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
188
11:10:14
fi
189
11:10:14
section_end:1778065813:section_script_step_7
190
11:10:14
$ final_image_url=${final_image_name}:${docker_checksum}
191
11:10:14
section_start:1778065813:section_script_step_9[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
192
11:10:14
echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
193
11:10:14
else
194
11:10:14
echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
195
11:10:14
fi
196
11:10:14
section_end:1778065813:section_script_step_9
197
11:10:14
$ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
198
11:10:14
section_start:1778065813:section_script_step_11[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
199
11:10:14
echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
200
11:10:14
fi
201
11:10:14
section_end:1778065813:section_script_step_11
202
11:10:14
203
11:10:14
WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
204
11:10:14
Configure a credential helper to remove this warning. See
205
11:10:14
https://docs.docker.com/go/credential-store/
206
11:10:14
207
11:10:14
2026/05/06 11:10:13 logged in via /kaniko/.docker/config.json
208
11:10:14
section_start:1778065813:section_script_step_12[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
209
11:10:14
echo "Image already exists, skip the build."
210
11:10:14
echo "$final_image_url"
211
11:10:14
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
212
11:10:14
_EXT=""
213
11:10:14
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
214
11:10:14
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
215
11:10:14
_EXT="-MR${CI_MERGE_REQUEST_IID}"
216
11:10:14
_BACKUP_EXT=""
217
11:10:14
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
218
11:10:14
_EXT="-${CI_COMMIT_REF_SLUG}"
219
11:10:14
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
220
11:10:14
fi
221
11:10:14
for _TAG in $CONTAINER_IMAGE_TAG; do
222
11:10:14
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
223
11:10:14
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
224
11:10:14
done
225
11:10:14
if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
226
11:10:14
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
227
11:10:14
echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
228
11:10:14
copy_image "${final_image_url}" "${final_image_url}${_EXT}"
229
11:10:14
for _TAG in $CONTAINER_IMAGE_TAG; do
230
11:10:14
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
231
11:10:14
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
232
11:10:14
done
233
11:10:14
fi
234
11:10:14
exit 0
235
11:10:14
fi
236
11:10:14
section_end:1778065813:section_script_step_12
237
11:10:14
$ DESTINATIONS="--destination=$final_image_url"
238
11:10:14
section_start:1778065814:section_script_step_14[hide_duration=true,collapsed=true]
$ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
239
11:10:14
_EXT=""
240
11:10:14
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
241
11:10:14
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
242
11:10:14
_EXT="-MR${CI_MERGE_REQUEST_IID}"
243
11:10:14
TIMESTAMP_TAGS=""
244
11:10:14
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
245
11:10:14
_EXT="-${CI_COMMIT_REF_SLUG}"
246
11:10:14
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
247
11:10:14
fi
248
11:10:14
section_end:1778065814:section_script_step_14
249
11:10:14
section_start:1778065814:section_script_step_15[hide_duration=true,collapsed=true]
$ for _TAG in $CONTAINER_IMAGE_TAG; do
250
11:10:14
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
251
11:10:14
done
252
11:10:14
section_end:1778065814:section_script_step_15
253
11:10:14
section_start:1778065814:section_script_step_16[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
254
11:10:14
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
255
11:10:14
DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
256
11:10:14
for _TAG in $CONTAINER_IMAGE_TAG; do
257
11:10:14
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
258
11:10:14
done
259
11:10:14
fi
260
11:10:14
section_end:1778065814:section_script_step_16
261
11:10:14
section_start:1778065814:section_script_step_17[hide_duration=true,collapsed=true]
$ DATE=$(date '+%Y%m%d')
262
11:10:14
for _TAG in $TIMESTAMP_TAGS; do
263
11:10:14
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
264
11:10:14
done
265
11:10:14
section_end:1778065814:section_script_step_17
266
11:10:14
section_start:1778065814:section_script_step_18[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
267
11:10:14
for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
268
11:10:14
FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
269
11:10:14
done
270
11:10:14
fi
271
11:10:14
section_end:1778065814:section_script_step_18
272
11:10:14
section_start:1778065814:section_script_step_19[hide_duration=true,collapsed=true]
$ for _PATH in $CONTAINER_IGNORE_PATHS; do
273
11:10:14
FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
274
11:10:14
done
275
11:10:14
section_end:1778065814:section_script_step_19
276
11:10:14
section_start:1778065814:section_script_step_20[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_PLATFORM}" ]; then
277
11:10:14
KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
278
11:10:14
fi
279
11:10:14
section_end:1778065814:section_script_step_20
280
11:10:14
$ ANNOTATIONS=""
281
11:10:14
section_start:1778065814:section_script_step_22[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
282
11:10:14
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
283
11:10:14
fi
284
11:10:14
section_end:1778065814:section_script_step_22
285
11:10:14
section_start:1778065814:section_script_step_23[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_SHA" ]]; then
286
11:10:14
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
287
11:10:14
fi
288
11:10:14
section_end:1778065814:section_script_step_23
289
11:10:14
section_start:1778065814:section_script_step_24[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_URL" ]]; then
290
11:10:14
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
291
11:10:14
fi
292
11:10:14
section_end:1778065814:section_script_step_24
293
11:10:14
section_start:1778065814:section_script_step_25[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_PIPELINE_ID" ]]; then
294
11:10:14
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
295
11:10:14
fi
296
11:10:14
section_end:1778065814:section_script_step_25
297
11:10:14
section_start:1778065814:section_script_step_26[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_ID" ]]; then
298
11:10:14
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
299
11:10:14
fi
300
11:10:14
section_end:1778065814:section_script_step_26
301
11:10:14
section_start:1778065814:section_script_step_27[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_IMAGE" ]]; then
302
11:10:14
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
303
11:10:14
fi
304
11:10:14
section_end:1778065814:section_script_step_27
305
11:10:14
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
306
11:10:14
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
307
11:10:14
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
308
11:10:14
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
309
11:10:14
section_start:1778065814:section_script_step_32[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
310
11:10:14
KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
311
11:10:14
fi
312
11:10:14
section_end:1778065814:section_script_step_32
313
11:10:14
$ set -x
314
11:10:14
+ echo '$ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo $CONTAINER_CACHE_REPO --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS'
315
11:10:14
$ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo $CONTAINER_CACHE_REPO --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS
316
11:10:14
+ /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.python '--destination=registry.scandit.com/internal/gitlab-templates:37ef3772b2786f9e8fc1560bf12bf7b4b608a0dedccd164159afad5059844873' '--destination=registry.scandit.com/internal/gitlab-templates:latest' '--destination=registry.scandit.com/internal/gitlab-templates:latest-CI54484698-20260506' '--cache=true' --cache-copy-layers --cache-dir /cache/kaniko --cache-repo registry.scandit.com/internal/gitlab-templates/cache '--cache-ttl=336h' --build-arg 'BASE_IMAGE_TAG=ubuntu-3.12-root' --annotation 'org.opencontainers.image.ref.name=master' --annotation 'org.opencontainers.image.revision=19a8ce14e2e16477c0e8fe40e5fa2b92ca33ea70' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54484698' --annotation 'io.gitlab.ci.pipeline_id=1581320' --annotation 'io.gitlab.ci.job_id=54484698' --annotation 'io.gitlab.ci.job_image=registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac' --annotation 'org.opencontainers.image.title=registry.scandit.com/internal/gitlab-templates:latest' --annotation 'org.opencontainers.image.created=2026-05-06T11:10:14Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=37ef3772b2786f9e8fc1560bf12bf7b4b608a0dedccd164159afad5059844873' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
317
11:10:14
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
318
11:10:14
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root
319
11:10:14
INFO[0000] Retrieving image registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root from registry registry.scandit.com
320
11:10:14
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
321
11:10:14
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root
322
11:10:14
INFO[0000] Returning cached image manifest
323
11:10:14
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root
324
11:10:14
INFO[0000] Returning cached image manifest
325
11:10:14
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root
326
11:10:14
INFO[0000] Returning cached image manifest
327
11:10:14
INFO[0000] Built cross stage deps: map[]
328
11:10:14
INFO[0000] Skipping context snapshot as no-one requires it
329
11:10:14
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root
330
11:10:14
INFO[0000] Returning cached image manifest
331
11:10:14
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root
332
11:10:14
INFO[0000] Returning cached image manifest
333
11:10:14
INFO[0000] Building stage 'registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12-root' [idx: '0', base-idx: '-1']
334
11:10:14
INFO[0000] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:20d2ebdcd331c7378c30abd4046dfeedae915145b2b15d6819ebb21c0e2e10ea...
335
11:10:14
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
336
11:10:14
INFO[0000] No cached layer found for cmd COPY requirements.txt requirements.txt
337
11:10:14
INFO[0000] Unpacking rootfs as cmd COPY requirements.txt requirements.txt requires it.
338
11:10:26
INFO[0012] COPY requirements.txt requirements.txt
339
11:10:26
INFO[0012] Taking snapshot of files...
340
11:10:26
INFO[0012] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:20d2ebdcd331c7378c30abd4046dfeedae915145b2b15d6819ebb21c0e2e10ea to cache now
341
11:10:26
INFO[0012] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
342
11:10:26
INFO[0012] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:20d2ebdcd331c7378c30abd4046dfeedae915145b2b15d6819ebb21c0e2e10ea
343
11:10:26
INFO[0012] ARG PYTHONDONTWRITEBYTECODE=1
344
11:10:26
INFO[0012] Taking snapshot of files...
345
11:10:26
INFO[0012] RUN --mount=type=secret,id=netrc,target=/root/.netrc --mount=type=cache,target=/root/.cache/uv uv pip install --system -r requirements.txt
346
11:10:26
INFO[0012] Initializing snapshotter ...
347
11:10:26
INFO[0012] Taking snapshot of full filesystem...
348
11:10:27
INFO[0013] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:87f63f8e60ab6320308c32237f516c5eaf70b6df40c0c1062310d1628aa8cf6c
349
11:10:36
INFO[0021] Cmd: /bin/sh
350
11:10:36
INFO[0021] Args: [-c uv pip install --system -r requirements.txt]
351
11:10:36
INFO[0021] Util.Lookup returned: &{Uid:0 Gid:0 Username:root Name:root HomeDir:/root}
352
11:10:36
INFO[0021] Performing slow lookup of group ids for root
353
11:10:36
INFO[0021] Running: [/kaniko/tini -s -- /bin/sh -c uv pip install --system -r requirements.txt]
354
11:10:36
Using Python 3.12.12 environment at: /root/.pyenv/versions/3.12.12
355
11:10:36
Resolved 7 packages in 351ms
356
11:10:36
Downloading pygments (1.2MiB)
357
11:10:36
Downloaded pygments
358
11:10:36
Prepared 7 packages in 70ms
359
11:10:37
Installed 7 packages in 435ms
360
11:10:37
+ coverage==7.13.5
361
11:10:37
+ iniconfig==2.3.0
362
11:10:37
+ packaging==26.2
363
11:10:37
+ pluggy==1.6.0
364
11:10:37
+ pygments==2.20.0
365
11:10:37
+ pytest==9.0.3
366
11:10:37
+ pytest-cov==7.1.0
367
11:10:37
INFO[0022] Taking snapshot of full filesystem...
368
11:10:38
INFO[0024] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:3f400bfbfa83196dc8827a835680ded84c071c3774af0c88de95986c2828d1bb to cache now
369
11:10:38
INFO[0024] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
370
11:10:38
INFO[0024] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:3f400bfbfa83196dc8827a835680ded84c071c3774af0c88de95986c2828d1bb
371
11:10:39
INFO[0024] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:ebb10961da65552f913905025fe1242eef1e6fb7f3157d2ccaebca4f1f1816f7
372
11:10:39
INFO[0024] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
373
11:10:39
INFO[0024] Pushing image to registry.scandit.com/internal/gitlab-templates:37ef3772b2786f9e8fc1560bf12bf7b4b608a0dedccd164159afad5059844873
374
11:10:41
INFO[0026] Pushed registry.scandit.com/internal/gitlab-templates@sha256:bbb07c1b6e021a72d8ac89cc4c2d1fb68d8fe270323d2a83c4022f6f4897c10e
375
11:10:41
INFO[0026] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
376
11:10:41
INFO[0026] Pushing image to registry.scandit.com/internal/gitlab-templates:latest
377
11:10:41
INFO[0027] Pushed registry.scandit.com/internal/gitlab-templates@sha256:bbb07c1b6e021a72d8ac89cc4c2d1fb68d8fe270323d2a83c4022f6f4897c10e
378
11:10:41
INFO[0027] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
379
11:10:41
INFO[0027] Pushing image to registry.scandit.com/internal/gitlab-templates:latest-CI54484698-20260506
380
11:10:42
INFO[0027] Pushed registry.scandit.com/internal/gitlab-templates@sha256:bbb07c1b6e021a72d8ac89cc4c2d1fb68d8fe270323d2a83c4022f6f4897c10e
381
11:10:42
+ cleanup
382
11:10:42
+ rv=0
383
11:10:42
+ '[' 0 -ne 0 ]
384
11:10:42
+ echo
385
11:10:42
386
11:10:42
+ echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484698'
387
11:10:42
Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484698
388
11:10:42
+ echo
389
11:10:42
390
11:10:42
+ echo
391
11:10:42
392
11:10:42
+ echo 'Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-26-238.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-br8ndl5c&var-resolution=15&from=1778065813000&to=1778065842000'
393
11:10:42
Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-26-238.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-br8ndl5c&var-resolution=15&from=1778065813000&to=1778065842000
394
11:10:42
+ echo 'Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-26-238.eu-central-1.compute.internal&var-resolution=15s&from=1778065813000&to=1778065842000'
395
11:10:42
Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-26-238.eu-central-1.compute.internal&var-resolution=15s&from=1778065813000&to=1778065842000
396
11:10:42
+ echo 'Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484698&sortOrder=Ascending&from=1778065813000&to=1778065842000'
397
11:10:42
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484698&sortOrder=Ascending&from=1778065813000&to=1778065842000
398
11:10:42
+ date -d '-7 days' '+%Y-%m-%d'
399
11:10:42
date: invalid date '-7 days'
400
11:10:42
+ date -d '+7 days' '+%Y-%m-%d'
401
11:10:42
date: invalid date '+7 days'
402
11:10:42
+ echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-python3-image-root-user&project=internal/gitlab-templates'
403
11:10:42
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-python3-image-root-user&project=internal/gitlab-templates
404
11:10:42
+ echo
405
11:10:42
406
11:10:42
+ exit 0
407
11:10:42
408
11:10:42
section_end:1778065842:step_script
409
11:10:42
+section_start:1778065842:upload_artifacts_on_success
410
11:10:42
+Uploading artifacts for successful job
411
11:10:42
Uploading artifacts...
412
11:10:42
docker_image_build.env: found 1 matching artifact files and directories
413
11:10:43
Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQYFQ8EP9WZB0FB3BN408Z9V id=54484698 responseStatus=201 Created token=64_z3fqNG
414
11:10:43
415
11:10:43
section_end:1778065843:upload_artifacts_on_success
416
11:10:43
+section_start:1778065843:cleanup_file_variables
417
11:10:43
+Cleaning up project directory and file based variables
418
11:10:43
419
11:10:43
section_end:1778065843:cleanup_file_variables
420
11:10:43
+
421
11:10:43
Job succeeded
422